MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / BatchHandler

Struct BatchHandler

pkg/samarap/handler_batch.go:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type BatchHandler[T any] struct {
13 fn func(msgs []*sarama.ConsumerMessage, ts []T) error
14 l *zap.Logger
15}
16
17func NewBatchHandler[T any](l *zap.Logger, fn func(msgs []*sarama.ConsumerMessage, ts []T) error) *BatchHandler[T] {
18 return &BatchHandler[T]{fn: fn, l: l}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected