Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaConfig ¶
type KafkaConfig struct { Enable bool `mapstructure:"enable" json:"enable" yaml:"enable"` // 是否开启 Partition int32 `mapstructure:"partition" json:"partition" yaml:"partition"` // 分区 EncoderKey string `mapstructure:"encoder-key" json:"encoderKey" yaml:"encoder-key"` // 编码key BootstrapServers []string `mapstructure:"bootstrap-servers" json:"bootstrapServers" yaml:"bootstrap-servers"` // kafka节点服务器 }
func (KafkaConfig) Load ¶
func (c KafkaConfig) Load()
Click to show internal directories.
Click to hide internal directories.