constants

package
v0.0.0-...-9d34830 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFileName = ".env"

	// MySQL URL with the following format: HOST:PORT.
	MySQLURL = "MYSQL_URL"

	// MySQL user.
	MySQLUser = "MYSQL_USER"

	// MySQL password.
	MySQLPassword = "MYSQL_PASSWORD"

	// MySQL database name.
	MySQLDatabase = "MYSQL_DATABASE"

	// RabbitMQ address.
	RabbitMQAddress = "RABBITMQ_ADDRESS"

	// Dofus Portals Token.
	DofusPortalsToken = "DOFUS_PORTALS_TOKEN"

	// Timeout to retrieve portals in seconds.
	DofusPortalsTimeout = "HTTP_TIMEOUT"

	// Probe port.
	ProbePort = "PROBE_PORT"

	// Metric port.
	MetricPort = "METRIC_PORT"

	// Zerolog values from [trace, debug, info, warn, error, fatal, panic].
	LogLevel = "LOG_LEVEL"

	// Boolean; used to register commands at development guild level or globally.
	Production = "PRODUCTION"
)
View Source
const (
	ExternalName     = "KaellyBot"
	InternalName     = "Kaelly-Portals"
	Version          = "2.0.0"
	RabbitMQClientID = InternalName
	DofusPortalsURL  = "https://api.dofus-portals.fr"
)
View Source
const (
	LogFileName        = "fileName"
	LogCorrelationID   = "correlationID"
	LogServerID        = "serverID"
	LogDimensionID     = "dimensionID"
	LogAreaID          = "areaID"
	LogReplyTo         = "replyTo"
	LogSubAreaID       = "subAreaID"
	LogTransportTypeID = "transportTypeID"

	LogLevelFallback = zerolog.InfoLevel
)

Variables

This section is empty.

Functions

func GetDefaultConfigValues

func GetDefaultConfigValues() map[string]any

Types

type Source

type Source struct {
	Name string
	Icon string
	URL  string
}

func GetDofusPortalsSource

func GetDofusPortalsSource() Source

Jump to

Keyboard shortcuts

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