initialise

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvironmentVariable

func GetEnvironmentVariable(key string) string

GetEnvironmentVariable will try to find the value for the provided key If it can't be found it logs and exits the program

func OptionalEnvironmentVariable added in v0.1.1

func OptionalEnvironmentVariable(key string) (string, error)

OptionalEnvironmentVariable will try to find the value for the provided key If it can't be found it logs and returns and error that can be ignored

func SetupLogging

func SetupLogging()

SetupLogging initalises a logrus logger with the log level set by environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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