Documentation ¶
Index ¶
- type Batcher
- type BatcherOptions
- type Factory
- func (f *Factory) Close() error
- func (f *Factory) Range(fn func(queue taskq.Queue) bool)
- func (f *Factory) Register(queue taskq.Queue) error
- func (f *Factory) Reset()
- func (f *Factory) StartConsumers(ctx context.Context) error
- func (f *Factory) StopConsumers() error
- func (f *Factory) Unregister(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher collects messages for later batch processing.
func NewBatcher ¶
func NewBatcher(consumer taskq.QueueConsumer, opt *BatcherOptions) *Batcher
type BatcherOptions ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func (*Factory) StopConsumers ¶
func (*Factory) Unregister ¶
Click to show internal directories.
Click to hide internal directories.