config

package
v0.0.0-...-d865c3a Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: MIT Imports: 2 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 {
	// Address where HTTP server bind to to run
	ServerAddr string `envconfig:"SERVER_ADDRESS" default:"127.0.0.1:10000"`
}

Config contains configurations to spins up the HTTP server.

func LoadEnvConfig

func LoadEnvConfig() *Config

LoadEnvConfig returns a Config object populated from environment variables.

Jump to

Keyboard shortcuts

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