Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶ added in v2.2.17
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶ added in v2.2.17
func NewConsumer(options ConsumerOptions) *Consumer
type ConsumerOptions ¶ added in v2.2.17
type ConsumerOptions struct { KafkaAddresses []string KafkaConsumerGroup string KafkaOffsetReset string SchemaRegistry *avro.SchemaRegistry }
type KafkaOptions ¶
type KafkaOptions struct { KafkaAddresses []string `` /* 155-byte string literal not displayed */ KafkaConsumerGroup string `` /* 131-byte string literal not displayed */ KafkaOffsetReset string `long:"kafka-offset-reset" default:"smallest" description:"Offset reset for kafka topic" choice:"smallest" choice:"largest"` KafkaSecurityProtocol string `long:"kafka-security-protocol" default:"ssl" description:"Security protocol" choice:"ssl" choice:"plaintext"` }
KafkaOptions provides simple flags for to create a kafka consumer
func (KafkaOptions) NewConsumer ¶ added in v2.2.41
func (opts KafkaOptions) NewConsumer(config kafka.ConfigMap) *kafka.Consumer
Click to show internal directories.
Click to hide internal directories.