Documentation
¶
Index ¶
Constants ¶
View Source
const ( SettingsFolder = "." SettingsName = "settings" SettingsOverrideName = "settings_local" SettingsEnvPrefix = "app" )
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(cfg interface{})
Load use viper to load config read settings.{yaml/json/toml} and unmarshal to interface cfg settings_local will override config in settings support auto reload when file change auto read config from env with prefix 'APP_' and will auto convert "_" to "." for example APP_TELEGRAM_TOKEN will map to telegram.token avoid to use "_" in config name for better env reading
Types ¶
type Config ¶
type Config struct {
Service ServiceConfig
Admins []Admin
LLMs []LLMConfig
Axiom Axiom
Telegram struct {
Token string `yaml:"token"`
}
ClaudeWeb struct {
Token string `yaml:"token"`
}
Bard struct {
Token string `yaml:"token"`
}
ReadEase ReadEase
CookieCloud CookieCloud
}
type CookieCloud ¶
Click to show internal directories.
Click to hide internal directories.