Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckSource ¶
type AckSource struct { Converter Converter // contains filtered or unexported fields }
AckSource represents an object that processes SampleGroups received from the Kafka message bus.
func NewAckSource ¶
func NewAckSource(config *AckSourceConfig) (*AckSource, error)
NewAckSource creates an instance of AckSource.
func (*AckSource) Chan ¶
func (as *AckSource) Chan() <-chan bus.AckPayload
Chan implements the bus.AckSource interface. Returns the channel that feeds the message payload.
func (*AckSource) Collect ¶
func (as *AckSource) Collect(ch chan<- prometheus.Metric)
Collect implements Collector. Sends metrics collected by sourceDurations and errorsTotal to the parameter ch.
func (*AckSource) Describe ¶
func (as *AckSource) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector. Sends decriptors of the instance's sourceDurations and errorsTotal to the parameter ch.
type AckSourceConfig ¶
AckSourceConfig represents the configuration of an AckSource object.
type Converter ¶
type Converter interface { // Convert converts a Kafka consumer message to be processed by ingesters // and indexers. Convert(*sarama.ConsumerMessage) (bus.SampleGroup, error) }
Converter is an interface that wraps the Convert method.
type DefaultConverter ¶
type DefaultConverter struct{}
DefaultConverter represents an oject has encapsulates the default Convert method.
func (DefaultConverter) Convert ¶
func (dc DefaultConverter) Convert(msg *sarama.ConsumerMessage) (bus.SampleGroup, error)
Convert implements Converter.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer represents an object that encapsulates the behavior of a Kafka producter.
func NewWriter ¶
func NewWriter(config *WriterConfig) (*Writer, error)
NewWriter creates a new instance of Writer.
type WriterConfig ¶
WriterConfig represents the configuration of a Writer object.