helpers

package
v0.0.0-...-81105c0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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