Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { Q chan item Batch chan []item Interval time.Duration MaxBatchItems int DispatchedCount int // contains filtered or unexported fields }
Dispatcher coordinates dispatching of queue items by time intervals or immediately after the batching limit is met.
func NewDispatcher ¶
func NewDispatcher(c *Config) *Dispatcher
NewDispatcher returns an initialized instance of Dispatcher.
Click to show internal directories.
Click to hide internal directories.