package
Version:
v0.0.0-...-2a61a3c
Opens a new window with list of versions in this module.
Published: May 13, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
KafkaEndpoints []string `env:"KAFKA_ENDPOINTS" envSeparator:","`
TopicName string `env:"TOPIC_NAME" envDefault:"kafka-golang-sample-topic"`
APIKey string `env:"API_KEY"`
MessageCount int `env:"MESSAGE_COUNT" envDefault:"100"`
ToRun string `env:"TO_RUN" envDefault:"producer"`
}
Read configuration from the environment.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.