config

package
v0.0.0-...-b090141 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// TODO: consul auth
	ExceptionService    string `default:"ExceptionService" split_words:"true"`
	ExternalServiceAddr string `split_words:"true"`
	ConsulAddr          string `default:"127.0.0.1:8500" split_words:"true"`
	ListenAddr          string `default:":8000" split_words:"true"`
	ServiceID           string `required:"true" split_words:"true"`
}

AppConfig is ENV based config, prefix MYAPP_. See github.com/kelseyhightower/envconfig for details.

func FromEnv

func FromEnv() (AppConfig, error)

FromEnv parses application config from ENV.

Jump to

Keyboard shortcuts

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