env

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

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGLEVEL   = "LOG_LEVEL"
	LOGJSON    = "LOG_JSON"
	PRINTTITLE = "PRINT_TITLE"
	HOSTNAME   = "HOSTNAME"
	PORT       = "PORT"
	CONFIGS    = "CONFIGS"

	ENV_INVALID_STRING = "Environment variable %s not set or invalid, aborting!"
)

Variables

This section is empty.

Functions

func ConfigureLog

func ConfigureLog(cfg Config)

Types

type Config

type Config struct {
	LogLevel   log.Level `json:"log_level"`
	LogJson    bool      `json:"log_json"`
	PrintTitle bool      `json:"print_title"`
	Hostname   string    `json:"hostname"`
	Port       int       `json:"port"`
	Configs    []string  `json:"configs"`
}

func GetConfig

func GetConfig() Config

Jump to

Keyboard shortcuts

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