Documentation ¶
Index ¶
- type Option
- type Options
- type Worker
- func (*Worker) DeleteJob(_, _ string) error
- func (a *Worker) Perform(job worker.Job) (*worker.JobInfo, error)
- func (a *Worker) PerformAt(job worker.Job, t time.Time) (*worker.JobInfo, error)
- func (a *Worker) PerformIn(job worker.Job, t time.Duration) (*worker.JobInfo, error)
- func (a *Worker) Register(name string, h worker.Handler) error
- func (a *Worker) RegisterWithOptions(name string, opts work.JobOptions, h worker.Handler) error
- func (a *Worker) Start() error
- func (a *Worker) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option describes how options should be implemented.
func WithMaxConcurrency ¶
WithMaxConcurrency configures the maxConcurrency option.
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options are used to configure the adapter config.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker implements the Worker interface.
func (*Worker) RegisterWithOptions ¶
func (a *Worker) RegisterWithOptions( name string, opts work.JobOptions, h worker.Handler, ) error
RegisterWithOptions binds a new job, with a name, options and a handler.
Click to show internal directories.
Click to hide internal directories.