package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: May 29, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Name string `env:"APP_NAME,default=hypernova-bot"`
Environment string `env:"APP_ENVIRONMENT,default=local"`
}
App defines the configs needed for the application itself.
Config is the aggregation of all necessary configurations.
type Discord struct {
Token string `env:"DISCORD_BOT_TOKEN,required"`
}
Discord defines the configs needed for interacting with the discord API.
type Metrics struct {
Enabled bool `env:"METRICS_ENABLED,default=false"`
Addr string `env:"METRICS_ADDRESS"`
BufLen int `env:"METRICS_BUFFER,default=5"`
}
Metrics defines the configs needed for collecting metrics.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.