Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
Batch is a size constrained batch.
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher is a time and size constrained batch generator.
func NewBatcher ¶
NewBatcher creates a new batcher that flushes after maxSize or maxAge are reached. Calls receiver with the result.
Click to show internal directories.
Click to hide internal directories.