constants

package
v0.0.0-...-5fa1789 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 4 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"

	// Redis URL.
	RedisURL = "REDIS_URL"

	// Redis user.
	RedisUser = "REDIS_USER"

	// Redis password.
	RedisPassword = "REDIS_PASSWORD"

	// Redis cache retention. Duration type.
	RedisCacheRetention = "REDIS_CACHE_RETENTION"

	// Redis cache size, following LFU rules.
	RedisCacheSize = "REDIS_CACHE_SIZE"

	// Cron tab to send almanax news.
	AlmanaxCronTab = "ALMANAX_CRON_TAB"

	// Cron tab to update set icons.
	UpdateSetCronTab = "UPDATE_SET_CRON_TAB"

	// Timeout to retrieve Dofus data. Duration type.
	DofusDudeTimeout = "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-Encyclopedia"
	Version          = "2.0.0"
	RabbitMQClientID = InternalName
	UserAgent        = ExternalName
	FrenchTimezone   = "Europe/Paris"
)
View Source
const (
	DofusDudeGame              = "dofus3beta"
	DofusDudeDefaultLanguage   = "en"
	DofusDudeAlmanaxDateFormat = "2006-01-02"
	DofusDudeAlmanaxSizeLimit  = 35
	DofusDudeLimit             = 25
)
View Source
const (
	LogAnkamaID      = "ankamaID"
	LogCorrelationID = "correlationID"
	LogDate          = "date"
	LogDuration      = "duration"
	LogEntityCount   = "entityCount"
	LogFileName      = "fileName"
	LogItemType      = "itemType"
	LogKey           = "key"
	LogQueryID       = "queryID"
	LogQueryType     = "queryType"
	LogReplyTo       = "replyTo"

	LogLevelFallback = zerolog.InfoLevel
)
View Source
const (
	MountLevel = 60
)

Variables

This section is empty.

Functions

func GetDefaultConfigValues

func GetDefaultConfigValues() map[string]any

func GetDofusDudeSource

func GetDofusDudeSource() *amqp.Source

func GetLanguages

func GetLanguages() map[amqp.Language]string

func GetSetPoints

func GetSetPoints() map[amqp.EquipmentType][]image.Point

func GetSupportedSearchIndex

func GetSupportedSearchIndex() []string

func GetSupportedTypeEnums

func GetSupportedTypeEnums() []string

Types

type Ingredient

type Ingredient struct {
	ID   string
	Name string
	Type amqp.ItemType
}

type Source

type Source struct {
	Name string
	Icon string
	URL  string
}

func GetEncyclopediasSource

func GetEncyclopediasSource() Source

Jump to

Keyboard shortcuts

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