Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { auth.AuthenticationConfig `mapstructure:"authentication"` Consumer Brokers []string `mapstructure:"brokers"` Topic string `mapstructure:"topic"` GroupID string `mapstructure:"group_id"` ClientID string `mapstructure:"client_id"` ProtocolVersion string `mapstructure:"protocol_version"` }
Configuration describes the configuration properties needed to create a Kafka consumer
func (*Configuration) NewConsumer ¶
func (c *Configuration) NewConsumer(logger *zap.Logger) (Consumer, error)
NewConsumer creates a new kafka consumer
Click to show internal directories.
Click to hide internal directories.