Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer reads segments from the queue, and replicates merged segments to the rest of the cluster. It's implemented as a state machine: gather segments, replicate, commit, and repeat. All failures invalidate the entire batch.
func New ¶
func New( client *http.Client, queue queue.Queue, log audit.Log, frequency time.Duration, consumedSegments, consumedRecords metrics.Counter, replicatedSegments, replicatedRecords metrics.Counter, failedSegments, failedRecords metrics.Counter, logger log.Logger, ) *Consumer
New creates a consumer.
Click to show internal directories.
Click to hide internal directories.