mirror of
https://github.com/tnb-labs/panel.git
synced 2026-08-29 02:10:58 +08:00
ea22c2f0a7
Replace the samber/do runtime container with explicit constructor dependencies and generated Wire graphs for ace and cli. Keep CLI application loading isolated and verify generated files in CI.
18 lines
459 B
Go
18 lines
459 B
Go
package bootstrap
|
|
|
|
import (
|
|
"log/slog"
|
|
|
|
"github.com/leonelquinteros/gotext"
|
|
"gorm.io/gorm"
|
|
|
|
"github.com/acepanel/panel/v3/internal/biz"
|
|
"github.com/acepanel/panel/v3/internal/taskqueue"
|
|
"github.com/acepanel/panel/v3/pkg/types"
|
|
)
|
|
|
|
// NewRunner 创建任务运行器
|
|
func NewRunner(notifyUsecase *biz.NotifyUsecase, db *gorm.DB, t *gotext.Locale, log *slog.Logger) (types.TaskRunner, error) {
|
|
return taskqueue.NewRunner(db, log, notifyUsecase, t), nil
|
|
}
|