Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaConfig ¶
type KafkaConfig struct { Address string `mapstructure:"address"` Topic string `mapstructure:"topic"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` GroupID string `mapstructure:"groupid"` }
KafkaConfig represents the configuration for Kafka.
func LoadConfig ¶
func LoadConfig() (*KafkaConfig, error)
LoadConfig loads the configuration from environment variables using Viper.
Click to show internal directories.
Click to hide internal directories.