config

package
v0.0.0-...-0ebd481 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init initialises the configuration from the environment

func Print

func Print(print func(string, ...interface{}))

Print displays the consumed configuration

Types

type Config

type Config struct {
	DatabaseHost       string
	DatabasePort       int
	DatabasePassword   string
	DatabaseUser       string
	DatabaseName       string
	RouteLivenessPath  string
	RouteMetricsPath   string
	RouteReadinessPath string
	ServerInterface    string
	ServerPort         string
}
var Var Config

Var exports the environment variables after Init() has been called

Jump to

Keyboard shortcuts

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