更新处理器
This commit is contained in:
@@ -40,6 +40,7 @@ type Config struct {
|
||||
Xingwei XingweiConfig `mapstructure:"xingwei"`
|
||||
Jiguang JiguangConfig `mapstructure:"jiguang"`
|
||||
Shumai ShumaiConfig `mapstructure:"shumai"`
|
||||
Tianyuanapi TianyuanapiConfig `mapstructure:"tianyuanapi"`
|
||||
Shujubao ShujubaoConfig `mapstructure:"shujubao"`
|
||||
Nuoer NuoerConfig `mapstructure:"nuoer"`
|
||||
Huibo HuiboConfig `mapstructure:"huibo"`
|
||||
@@ -656,6 +657,33 @@ type ShumaiLevelFileConfig struct {
|
||||
Compress bool `mapstructure:"compress"`
|
||||
}
|
||||
|
||||
// TianyuanapiConfig 天远 API 中转配置
|
||||
type TianyuanapiConfig struct {
|
||||
BaseURL string `mapstructure:"base_url"`
|
||||
AccessID string `mapstructure:"access_id"`
|
||||
EncryptionKey string `mapstructure:"encryption_key"`
|
||||
Timeout time.Duration `mapstructure:"timeout"`
|
||||
|
||||
Logging TianyuanapiLoggingConfig `mapstructure:"logging"`
|
||||
}
|
||||
|
||||
// TianyuanapiLoggingConfig 天远 API 日志配置
|
||||
type TianyuanapiLoggingConfig struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
LogDir string `mapstructure:"log_dir"`
|
||||
UseDaily bool `mapstructure:"use_daily"`
|
||||
EnableLevelSeparation bool `mapstructure:"enable_level_separation"`
|
||||
LevelConfigs map[string]TianyuanapiLevelFileConfig `mapstructure:"level_configs"`
|
||||
}
|
||||
|
||||
// TianyuanapiLevelFileConfig 天远 API 级别文件配置
|
||||
type TianyuanapiLevelFileConfig struct {
|
||||
MaxSize int `mapstructure:"max_size"`
|
||||
MaxBackups int `mapstructure:"max_backups"`
|
||||
MaxAge int `mapstructure:"max_age"`
|
||||
Compress bool `mapstructure:"compress"`
|
||||
}
|
||||
|
||||
// ShujubaoConfig 数据宝配置
|
||||
type ShujubaoConfig struct {
|
||||
URL string `mapstructure:"url"`
|
||||
|
||||
Reference in New Issue
Block a user