Files
panel/internal/bootstrap/queue.go
T
耗子 ea22c2f0a7 refactor(di): restore compile-time Wire injection
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.
2026-07-27 02:54:44 +08:00

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
}