@@ -18,6 +18,7 @@ type AppConfigs struct {
|
||||
Server ServerConfigs `yaml:"server"`
|
||||
Log LogConfigs `yaml:"log"`
|
||||
Redis RedisConfigs `yaml:"redis"`
|
||||
SifCap SifCapConfigs `yaml:"sifcap"`
|
||||
}
|
||||
|
||||
type ServerConfigs struct {
|
||||
@@ -40,6 +41,10 @@ type RedisConfigs struct {
|
||||
Db int `yaml:"db"`
|
||||
}
|
||||
|
||||
type SifCapConfigs struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
}
|
||||
|
||||
func DefaultConfigs() *AppConfigs {
|
||||
return &AppConfigs{
|
||||
AppName: "LL! SIF Private Server",
|
||||
@@ -60,6 +65,9 @@ func DefaultConfigs() *AppConfigs {
|
||||
Pass: "",
|
||||
Db: 0,
|
||||
},
|
||||
SifCap: SifCapConfigs{
|
||||
Enabled: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user