Documentation
¶
Overview ¶
Package runtime loads example and CLI configuration from environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
StorageDriver string
DatabaseURL string
PGAutoSchema bool
MigrationsStore string
MigrationsFile string
}
CLI contains storage and migration command settings.
type Config ¶
type Config struct {
AppName string
Logging logging.Config
TG Telegram
VK VK
Discord Discord
CLI CLI
}
Config groups application, platform and CLI settings.
func Load ¶
func Load() Config
Load reads .env when present and then resolves configuration from the environment.
func (Config) ValidatePlatforms ¶
ValidatePlatforms checks that at least one usable platform is configured.
type Discord ¶ added in v2.0.1
type Discord struct {
Token string
}
Discord contains Discord adapter settings.