Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReloadConfig ¶ added in v0.9.0
func ReloadConfig() error
Types ¶
type Config ¶
type Config struct {
Lang string `toml:"lang" mapstructure:"lang" json:"lang"`
Workers int `toml:"workers" mapstructure:"workers"`
Retry int `toml:"retry" mapstructure:"retry"`
NoCleanCache bool `toml:"no_clean_cache" mapstructure:"no_clean_cache" json:"no_clean_cache"`
Threads int `toml:"threads" mapstructure:"threads" json:"threads"`
Stream bool `toml:"stream" mapstructure:"stream" json:"stream"`
Cache cacheConfig `toml:"cache" mapstructure:"cache" json:"cache"`
Users []userConfig `toml:"users" mapstructure:"users" json:"users"`
Temp tempConfig `toml:"temp" mapstructure:"temp"`
DB dbConfig `toml:"db" mapstructure:"db"`
Telegram telegramConfig `toml:"telegram" mapstructure:"telegram"`
Storages []storage.StorageConfig `toml:"-" mapstructure:"-" json:"storages"`
Hook hookConfig `toml:"hook" mapstructure:"hook" json:"hook"`
}
func (Config) GetStorageByName ¶ added in v0.11.0
func (c Config) GetStorageByName(name string) storage.StorageConfig
func (*Config) GetStorageNamesByUserID ¶ added in v0.11.0
func (*Config) GetUsersID ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.