Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundEnqueuer ¶
type BackgroundEnqueuer interface { Enqueue(pattern string, task []byte, opts ...EnqueuerOption) error EnqueueContext(ctx context.Context, pattern string, task []byte, opts ...EnqueuerOption) error Close() error }
func NewBackgroundEnqueuer ¶
func NewBackgroundEnqueuer(config *config.WorkerConfig) BackgroundEnqueuer
type BackgroundWorker ¶
type BackgroundWorker interface { Register(pattern string, handler func(ctx context.Context, payload []byte) error, cleanups ...func(taskID string, payload []byte)) Run() }
func NewBackgroundWorker ¶
func NewBackgroundWorker(config *config.WorkerConfig, logger log.Logger) BackgroundWorker
type EnqueuerOption ¶
type EnqueuerOption func(*EnqueuerOptions)
func WithMaxRetry ¶
func WithMaxRetry(val int) EnqueuerOption
func WithTaskID ¶
func WithTaskID(val string) EnqueuerOption
func WithTimeout ¶
func WithTimeout(val time.Duration) EnqueuerOption
type EnqueuerOptions ¶
func NewEnqueuerOptions ¶
func NewEnqueuerOptions(opts ...EnqueuerOption) EnqueuerOptions
type WorkerRedisCredentials ¶
Click to show internal directories.
Click to hide internal directories.