service

package
v0.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronService

type CronService interface {
	CreateCronJob(ctx context.Context, req *model.CreateCronJobReq) error
	UpdateCronJob(ctx context.Context, req *model.UpdateCronJobReq) error
	DeleteCronJob(ctx context.Context, id int) error
	GetCronJob(ctx context.Context, id int) (*model.CronJob, error)
	GetCronJobList(ctx context.Context, req *model.GetCronJobListReq) (model.ListResp[*model.CronJob], error)
	EnableCronJob(ctx context.Context, id int) error
	DisableCronJob(ctx context.Context, id int) error
	TriggerCronJob(ctx context.Context, id int) error
	ValidateSchedule(ctx context.Context, req *model.ValidateScheduleReq) (*model.ValidateScheduleResp, error)
}

func NewCronService

func NewCronService(
	logger *zap.Logger,
	cronDAO dao.CronJobDAO,
	userDAO userDao.UserDAO,
	client *asynq.Client,
	cronScheduler *scheduler.CronScheduler,
) CronService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL