config

package
v0.0.0-...-1faa35c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: MIT 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 {
	HTTP struct {
		Host string
		Port string `envconfig:"PORT" default:"8080"`
		Root string `default:"/"`
	}
	Facebook struct {
		AppID   string `envconfig:"TEST_FACEBOOK_APP_ID"`
		Secret  string
		Version string
	}
}

Config stores the configuration settings.

func Load

func Load() (Config, error)

Load loads the configuration from the environment.

func MustLoad

func MustLoad() Config

MustLoad loads the configuration from the environmnet and panics if an error is encountered.

Jump to

Keyboard shortcuts

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