Documentation
¶
Index ¶
- Variables
- type Executor
- type Option
- type Payload
- type Queue
- func (q *Queue) Name() string
- func (q *Queue) ProcessingCount(ctx context.Context) (int64, error)
- func (q *Queue) Push(ctx context.Context, tasks ...Task) error
- func (q *Queue) QueueLength(ctx context.Context) (int64, error)
- func (q *Queue) RecoverStale(ctx context.Context, maxAge time.Duration) (int, error)
- func (q *Queue) Start(ctx context.Context) error
- func (q *Queue) Stop() error
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrQueueAlreadyRunning = errors.New("taskqueue: queue is already running") ErrQueueNotRunning = errors.New("taskqueue: queue is not running") ErrNilClient = errors.New("taskqueue: redis client is nil") ErrNilExecutor = errors.New("taskqueue: task executor is nil") ErrEmptyQueueKey = errors.New("taskqueue: queue key is empty") ErrMaxAgeTooSmall = errors.New("taskqueue: maxAge must be greater than execTimeout") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Queue)
func WithBufferSize ¶
func WithExecTimeout ¶
func WithPollInterval ¶
func WithWorkerCount ¶
Click to show internal directories.
Click to hide internal directories.