config

package
v0.0.0-...-cdb1537 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Token is the bot token
	Token string

	// AppID is the bot's application ID
	AppID string

	// GuildID is the bot's guild ID
	GuildID string

	// Logging is the logging configuration
	Logging structs.LoggingConfig

	// Google is the google configuration
	Google structs.GoogleConfig

	// Web is the web configuration
	Web structs.WebConfig

	// MailGun is the mailgun configuration
	MailGun structs.MailGunConfig

	// ServiceName is the name of the application
	ServiceName string

	// Environment is the environment the application is running in
	Environment string
)

Functions

func GetBool

func GetBool(key string) bool

Get Bool Value from config

func GetInt

func GetInt(key string) int

Get Int Value from config

func GetString

func GetString(key string) string

Get String Value from config

func SetLoggingLevel

func SetLoggingLevel(level string)

SetLoggingLevel sets the logging level

func UpdateConfigs

func UpdateConfigs()

UpdateConfigs updates the config variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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