Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigurationFile ¶
func GetConfigurationFile(locationOfConfigFile string) (*configuration.Configuration, error)
GetConfigurationFile fetches the configuration file and
func RefreshConfigServer ¶
func RefreshConfigServer(config ServerConfig) *http.Server
RefreshConfigServer is a server setup to listen exclusively for signal to reload the config data from CONFIG_LOCATION set as an environment variable
Types ¶
type ServerConfig ¶
type ServerConfig struct { StatusChecker serverService Pinger serverService }
ServerConfig is the config passed to confiRefreshServer to run a server according to envar configs
func Setup ¶
func Setup(conf *configuration.Configuration) (serverConfig ServerConfig, cancel context.CancelFunc)
Setup runs the Launcher for pinger and statusChecker unless a X_ONLY config envar has been set. Returns channels to running services and a cancelfunc. Non running services will have chan as nil
Click to show internal directories.
Click to hide internal directories.