config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

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 Generate

func Generate(filepath string)

func GetBotName

func GetBotName() string

func GetBotPrefix

func GetBotPrefix() string

func GetBotStatus

func GetBotStatus() string

func GetDiscordToken

func GetDiscordToken() string

func GetDomain

func GetDomain() 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 IsEnvironment(environments ...string) bool

func IsHTTPEndpointEnabled

func IsHTTPEndpointEnabled() bool

func IsMumbleEnabled

func IsMumbleEnabled() bool

func Load

func Load(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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