Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchBuffer ¶
type BatchBuffer struct {
// contains filtered or unexported fields
}
BatchBuffer is a buffer to cache the input data in Sender.
func NewBatchBuffer ¶
func NewBatchBuffer(capacity int) *BatchBuffer
NewBatchBuffer creates a new BatchBuffer according to the capacity param.
func (*BatchBuffer) Add ¶
func (b *BatchBuffer) Add(data *event.OutputEventContext)
Add adds a new data input buffer.
func (*BatchBuffer) Buf ¶
func (b *BatchBuffer) Buf() []*event.OutputEventContext
Buf returns the cached data in BatchBuffer.
func (*BatchBuffer) First ¶
func (b *BatchBuffer) First() event.Offset
First returns the first OutputEventContext offset.
func (*BatchBuffer) Last ¶
func (b *BatchBuffer) Last() event.Offset
Last returns the last OutputEventContext offset.
type Limiter ¶ added in v0.3.0
type Limiter struct { Config LimiterConfig // contains filtered or unexported fields }
func NewLimiter ¶ added in v0.3.0
func NewLimiter(config LimiterConfig, checker Checker) *Limiter
type LimiterConfig ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.