config

package
v0.0.0-...-2a61a3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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"`
}

func Read

func Read() (*Config, error)

Read configuration from the environment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL