Documentation ¶
Index ¶
- func GetAPIHostAndPort() string
- func GetAPIMySQLDSN() string
- func GetAutoUpdateCommand() string
- func GetDaemonDelay() time.Duration
- func GetDaemonMode() int
- func GetDebugMode() bool
- func GetDebugQueryMode() bool
- func GetDefaultClientTimeout() time.Duration
- func GetLBRYcrdURL() string
- func GetMySQLDSN() string
- func GetProcessingDelay() time.Duration
- func InitSlack()
- func InitializeConfiguration()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIHostAndPort ¶
func GetAPIHostAndPort() string
GetAPIHostAndPort gets the host and port string the api server should bind and listen too.
func GetAPIMySQLDSN ¶
func GetAPIMySQLDSN() string
GetAPIMySQLDSN gets the API MySql DSN from viper. This intended to be another account with limited privileges for the apis to prevent potential abuse. It should have read only privileges at a minimum.
func GetAutoUpdateCommand ¶ added in v0.1.0
func GetAutoUpdateCommand() string
GetAutoUpdateCommand returns the command that should be executed to trigger a self update of the software.
func GetDaemonDelay ¶
GetDaemonDelay gets the deamon delay from the viper configuration
func GetDaemonMode ¶
func GetDaemonMode() int
GetDaemonMode gets the daemon mode from the viper configuration. See default toml file for different modes.
func GetDebugMode ¶
func GetDebugMode() bool
GetDebugMode returns true/false if the app is in debug mode.
func GetDebugQueryMode ¶ added in v1.2.0
func GetDebugQueryMode() bool
GetDebugQueryMode turns on SQLBoiler query output
func GetDefaultClientTimeout ¶
GetDefaultClientTimeout gets the default client timeout.
func GetLBRYcrdURL ¶
func GetLBRYcrdURL() string
GetLBRYcrdURL gets the LBRYcrd URL from viper configuration
func GetMySQLDSN ¶
func GetMySQLDSN() string
GetMySQLDSN gets the MySql DSN from viper configuration
func GetProcessingDelay ¶
GetProcessingDelay gets the processing delay from the viper configuration.
func InitSlack ¶
func InitSlack()
InitSlack initializes the slack connection and posts info level or greater to the set channel.
func InitializeConfiguration ¶
func InitializeConfiguration()
InitializeConfiguration is the main entry point from outside the package. This initializes the configuration and watcher.
Types ¶
This section is empty.