Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AsynqSet = wire.NewSet( NewClient, NewManager, )
Functions ¶
func PanicRecovery ¶
func PanicRecovery() asynq.MiddlewareFunc
Types ¶
type Client ¶
type Manager ¶
type Manager interface {
// will launch goroutine, blocks until some specified `os.Signal`s received
Run()
RegisterHandler(name string, fn HandleFunc)
// will set a job id which ensure cron triggers the job only once when time is up.
// be careful when set a retention which should be end before the next turn,
// otherwise the job will not be triggered in the next turn due to the conflict job id.
RegisterCron(cronspec string, task *Task, opts ...Option) (entryID string, err error)
}
func NewManager ¶
Click to show internal directories.
Click to hide internal directories.