Documentation ¶
Index ¶
- type Adapter
- func (q Adapter) Perform(job worker.Job) error
- func (q Adapter) PerformAt(job worker.Job, t time.Time) error
- func (q Adapter) PerformIn(job worker.Job, t time.Duration) error
- func (q *Adapter) Register(name string, h worker.Handler) error
- func (q *Adapter) RegisterWithOptions(name string, opts work.JobOptions, h worker.Handler) error
- func (q *Adapter) Start(ctx context.Context) error
- func (q *Adapter) Stop() error
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { Enqueur *work.Enqueuer Pool *work.WorkerPool Logger Logger // contains filtered or unexported fields }
Adapter adapts gocraft/work to use with buffalo.
func (*Adapter) RegisterWithOptions ¶
RegisterWithOptions binds a new job, with a name, options and a handler.
Click to show internal directories.
Click to hide internal directories.