Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchLogs ¶
func BatchLogs(ctx context.Context, config BatchConfig)
func WorkerCreator ¶
Types ¶
type BatchConfig ¶
type BatchConfig struct {
MaxBatchSize int
MaxBatchWait time.Duration
// RealtimeWait returns a shorter wait for a realtime log, or zero for a queued log.
// Queued-only batches keep the existing periodic MaxBatchWait behavior.
RealtimeWait func(*types.Log) time.Duration
InputQueue <-chan *types.Log
OutputQueue chan<- *types.LogBatch
AckGenerator func(log *types.Log) func()
}
type WorkerCreatorFunc ¶
Click to show internal directories.
Click to hide internal directories.