globals

package
v0.0.0-...-d81eb3e Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPLICATIONNAME    = "go-leader-election"
	APPLICATIONVERSION = "0.1-dev"
)

Variables

View Source
var Config *config.Config

Config stores the application configuration

Logger is a global logger used throughout the application

Functions

func InitConfig

func InitConfig()

InitConfig should be the first initializer that should be called. It reads values from the environment and builds the configuration settings for the application.

func InitLogger

func InitLogger(application, env string)

InitLogger creates a new default logger for the application

Types

This section is empty.

Jump to

Keyboard shortcuts

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