Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumerHealthCheck ¶
func ConsumerHealthCheck(consumerName string) healthcheck.Check
Types ¶
type Consumer ¶
type Consumer struct { Name string // contains filtered or unexported fields }
Consumer represents a Sarama consumer group consumer
func (*Consumer) Cleanup ¶
func (consumer *Consumer) Cleanup(session sarama.ConsumerGroupSession) error
Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited
func (*Consumer) ConsumeClaim ¶
func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages().
type ConsumerError ¶
type Kafka ¶
type Kafka struct { Name string Version string Earliest bool Brokers string ConsumerGroup string Topic string Sasl struct { Username string Password string } // contains filtered or unexported fields }
Kafka reader configuration
func (*Kafka) Description ¶
Description of this kafka consumre, which topic it reads from
Click to show internal directories.
Click to hide internal directories.