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
View Source
var Logger logger.Logger
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.
Click to show internal directories.
Click to hide internal directories.