Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchBuilder ¶
type BatchBuilder interface { // Build builds the batch payloads // it's possible that not all input payloads can be combined into one Build(input [][]byte, maxBytes int) [][]byte }
BatchBuilder defines builder interface
type BatchHandler ¶
BatchHandler defines handler
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher implements buffered batcher
func NewBatcher ¶
func NewBatcher( bb BatchBuilder, bh BatchHandler, d time.Duration, maxBytes int) *Batcher
NewBatcher returns new instance
Click to show internal directories.
Click to hide internal directories.