Documentation
¶
Index ¶
- func BeginChangeCheck(frequency time.Duration)
- func FindCommandEntry(name string) ([]data.CommandEntry, error)
- func GetBundleConfigs() []data.Bundle
- func GetCogServerConfigs() data.CogServerConfigs
- func GetDatabaseConfigs() data.DatabaseConfigs
- func GetDockerConfigs() data.DockerConfigs
- func GetGlobalConfigs() data.GlobalConfigs
- func GetSlackProviders() []data.SlackProvider
- func Initialize(file string) error
- func ReloadConfiguration() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginChangeCheck ¶
BeginChangeCheck starts a routine that checks the underlying config for changes and reloads if one is found.
func FindCommandEntry ¶
func FindCommandEntry(name string) ([]data.CommandEntry, error)
FindCommandEntry looks for a command in the configuration. It assumes that command character(s) have already been removed, and expects a string in the format "bundle:command" or "command"; the latter can return multiple values if a similarly-named command is found in multiple bundles
func GetBundleConfigs ¶
GetBundleConfigs returns the data wrapper for the "bundles" config section.
func GetCogServerConfigs ¶
func GetCogServerConfigs() data.CogServerConfigs
GetCogServerConfigs returns the data wrapper for the "cog" config section.
func GetDatabaseConfigs ¶
func GetDatabaseConfigs() data.DatabaseConfigs
GetDatabaseConfigs returns the data wrapper for the "database" config section.
func GetDockerConfigs ¶
func GetDockerConfigs() data.DockerConfigs
GetDockerConfigs returns the data wrapper for the "docker" config section.
func GetGlobalConfigs ¶
func GetGlobalConfigs() data.GlobalConfigs
GetGlobalConfigs returns the data wrapper for the "global" config section.
func GetSlackProviders ¶
func GetSlackProviders() []data.SlackProvider
GetSlackProviders returns the data wrapper for the "slack" config section.
func Initialize ¶
Initialize is called by main() to trigger creation of the config singleton.
func ReloadConfiguration ¶
func ReloadConfiguration() error
Types ¶
This section is empty.