config

package
v0.0.0-...-95785cc Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 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 Env

type Env struct {
	Host           string `envconfig:"HOST" default:"127.0.0.1"`
	Port           int    `envconfig:"PORT" default:"8080"`
	ConfigPort     int    `envconfig:"CONFIG_PORT" default:"8081"`
	ConfigFilePath string `envconfig:"GNOCK_CONFIG" default:"./gnockgnock.yaml"`
	ConfigBasePath string `envconfig:"GNOCK_BASE_PATH" default:"/gnockconfig"`
	LogLevel       string `envconfig:"LOG_LEVEL" default:"debug"`
}

Env holds the values of environment variable based configuration

func New

func New() *Env

New returns a new Env config

Jump to

Keyboard shortcuts

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