consumer

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchHandler

type BatchHandler struct {
	// contains filtered or unexported fields
}

BatchHandler processes event batches and writes them to storage

func NewBatchHandler

func NewBatchHandler(writer *storage.Writer) *BatchHandler

NewBatchHandler creates a new batch handler with the given storage writer

func (*BatchHandler) ProcessBatch

func (h *BatchHandler) ProcessBatch(ctx context.Context, envelopes []*messaging.EventEnvelope) error

ProcessBatch unmarshals, groups, and writes events by type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL