Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Config make things easier but is bad Config *Specification // AppName describes the name of the application AppName = "Caretaker" // AppVersion describes the version of the application AppVersion = "0.1.0" )
Functions ¶
This section is empty.
Types ¶
type Specification ¶
type Specification struct { Port string `default:"3000"` LogLevel string `envconfig:"log_level" default:"debug"` }
Specification to hold the configuration of the application
func ParseConfiguration ¶
func ParseConfiguration() (Specification, error)
ParseConfiguration will parse the configuration of Unleash based on environment variables
func (*Specification) Describe ¶
func (specification *Specification) Describe()
Describe will log all variables parsed with envconfig
Click to show internal directories.
Click to hide internal directories.