Documentation ¶
Index ¶
- type Client
- func (c Client) Cancel(ctx context.Context, id string) error
- func (c Client) Get(ctx context.Context, id string) (jobs.Job, error)
- func (c Client) Schedule(ctx context.Context, id string, queueName string, arguments interface{}, ...) error
- func (c Client) ScheduleNow(ctx context.Context, id string) error
- func (c Client) WithTx(tx *sql.Tx) TxClient
- type OptionFunc
- type TxClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Schedule ¶
func (c Client) Schedule(ctx context.Context, id string, queueName string, arguments interface{}, options ...OptionFunc) error
Schedule schedules a job in the queue to be executed as soon as possible
func (Client) ScheduleNow ¶
ScheduleNow reschedules a job in the queue to be executed immediately
type OptionFunc ¶
func WithMaxRetries ¶
func WithMaxRetries(tries int) OptionFunc
func WithRetryInterval ¶
func WithRetryInterval(interval time.Duration) OptionFunc
func WithScheduleTime ¶
func WithScheduleTime(t time.Time) OptionFunc
Click to show internal directories.
Click to hide internal directories.