config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BinaryName = "deloominator"

BinaryName is the name of the program

Variables

This section is empty.

Functions

func Help

func Help() error

Types

type Config

type Config struct {
	Port      int      `default:"3000"`
	Sources   []string `envconfig:"data_sources" required:"true"`
	Storage   string   `envconfig:"storage"`
	LogFormat string   `default:"JSON" split_words:"true"`
	Debug     bool     `default:"false"`
	SkipOpen  bool     `default:"false" split_words:"true"`
}

Config represents the available options `deloominator` can read from the environment

func GetConfig

func GetConfig() (*Config, error)

GetConfig reads the configuration from the environment and populates a Config structure

Jump to

Keyboard shortcuts

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