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

Function NewBatchHandler

pkg/samarap/handler_batch.go:17–19  ·  view source on GitHub ↗
(l *zap.Logger, fn func(msgs []*sarama.ConsumerMessage, ts []T) error)

Source from the content-addressed store, hash-verified

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}
19}
20
21func (b *BatchHandler[T]) Setup(session sarama.ConsumerGroupSession) error {
22 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected