Documentation
¶
Index ¶
- Constants
- Variables
- func Generate(filepath string)
- func GetBotName() string
- func GetBotPrefix() string
- func GetBotStatus() string
- func GetDiscordToken() string
- func GetDomain() string
- func GetEnvironment() string
- func GetHTTPPort() int
- func GetMumbleHost() string
- func GetMumblePort() int
- func GetMumbleTLS() bool
- func GetMumbleUsername() string
- func GetVersion() string
- func IsDiscordEnabled() bool
- func IsEnvironment(environments ...string) bool
- func IsHTTPEndpointEnabled() bool
- func IsMumbleEnabled() bool
- func Load(path string) error
Constants ¶
View Source
const APP_ENVIRONMENT_LOCAL string = "LOCAL"
View Source
const APP_ENVIRONMENT_PRODUCTION string = "PROD"
View Source
const APP_ENVIRONMENT_TEST string = "TEST"
Variables ¶
View Source
var BuildDate string
View Source
var GitCommit string
These variables are initialized externally during the build. See the Makefile.
View Source
var GitExactTag string
View Source
var GitLastTag string
View Source
var ShutdownChannel = make(chan os.Signal, 1)
View Source
var StartTime time.Time
Functions ¶
func GetBotName ¶
func GetBotName() string
func GetBotPrefix ¶
func GetBotPrefix() string
func GetBotStatus ¶
func GetBotStatus() string
func GetDiscordToken ¶
func GetDiscordToken() string
func GetEnvironment ¶
func GetEnvironment() string
func GetHTTPPort ¶
func GetHTTPPort() int
func GetMumbleHost ¶
func GetMumbleHost() string
func GetMumblePort ¶
func GetMumblePort() int
func GetMumbleTLS ¶
func GetMumbleTLS() bool
func GetMumbleUsername ¶
func GetMumbleUsername() string
func GetVersion ¶
func GetVersion() string
func IsDiscordEnabled ¶
func IsDiscordEnabled() bool
func IsEnvironment ¶
func IsHTTPEndpointEnabled ¶
func IsHTTPEndpointEnabled() bool
func IsMumbleEnabled ¶
func IsMumbleEnabled() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.