Documentation ¶
Index ¶
- func NewFactory() taskq.Factory
- type Queue
- func (q *Queue) Add(msg *taskq.Message) error
- func (q *Queue) Close() error
- func (q *Queue) CloseTimeout(timeout time.Duration) error
- func (q *Queue) Consumer() taskq.QueueConsumer
- func (q *Queue) Delete(msg *taskq.Message) error
- func (q *Queue) DeleteBatch(msgs []*taskq.Message) error
- func (q *Queue) Len() (int, error)
- func (q *Queue) Name() string
- func (q *Queue) Options() *taskq.QueueOptions
- func (q *Queue) Purge() error
- func (q *Queue) Release(msg *taskq.Message) error
- func (q *Queue) ReserveN(_ context.Context, _ int, _ time.Duration) ([]taskq.Message, error)
- func (q *Queue) SetNoDelay(noDelay bool)
- func (q *Queue) SetSync(sync bool)
- func (q *Queue) String() string
- func (q *Queue) WaitTimeout(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() taskq.Factory
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) CloseTimeout ¶
CloseTimeout closes the queue waiting for pending messages to be processed.
func (*Queue) DeleteBatch ¶
func (*Queue) SetNoDelay ¶
Click to show internal directories.
Click to hide internal directories.