Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Committer ¶
type Committer interface { Commit(ctx context.Context, offset int64) error EnqueueOffset(offset int64) }
Committer defines an interface for committing offsets
type ConsumerFactory ¶
type Reader ¶
Reader is responsible for reading data from a specific Kafka partition and passing it to the consumer for processing. It is a core component of the Loki ingester's Kafka-based ingestion pipeline.
func NewReader ¶
func NewReader( kafkaCfg kafka.Config, partitionID int32, instanceID string, consumerFactory ConsumerFactory, logger log.Logger, reg prometheus.Registerer, ) (*Reader, error)
NewReader creates and initializes a new PartitionReader. It sets up the basic service and initializes the reader with the provided configuration.
Click to show internal directories.
Click to hide internal directories.