Documentation ¶
Index ¶
Constants ¶
View Source
const ( BootstrapServerEnvVar = "BOOTSTRAP_SERVERS" TopicEnvVar = "TOPIC" GroupIDEnvVar = "GROUP_ID" MessageCountEnvVar = "MESSAGE_COUNT" )
environment variables declaration
View Source
const ( BootstrapServersDefault = "localhost:9092" TopicDefault = "my-topic" GroupIDDefault = "my-group" MessageCountDefault = 10 )
default values for environment variables
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerConfig ¶
type ConsumerConfig struct { BootstrapServers string Topic string GroupID string MessageCount int64 }
ConsumerConfig defines the producer configuration
func NewConsumerConfig ¶
func NewConsumerConfig() *ConsumerConfig
Click to show internal directories.
Click to hide internal directories.