Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunConsumer ¶
func RunConsumer( ctx, drainingCtx context.Context, brokers []string, topic, group string, handle func(context.Context, *kgo.Record) error, ) error
RunConsumer processes up to 50 records concurrently. Handlers may finish out of order, but commits stay ordered within each partition and stop at failures. On failure the client closes and uncommitted records are retried on the next run. Draining stops polling and lets the current batch finish before closing.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
Click to show internal directories.
Click to hide internal directories.