launcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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