2025-01-24 11:00:07 +08:00
|
|
|
package global
|
|
|
|
|
|
|
|
|
|
type ServerConfig struct {
|
|
|
|
|
Base Base `mapstructure:"base"`
|
|
|
|
|
Conn Conn `mapstructure:"conn"`
|
|
|
|
|
LogConfig LogConfig `mapstructure:"log"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Base struct {
|
|
|
|
|
Mode string `mapstructure:"mode"`
|
|
|
|
|
Username string `mapstructure:"username"`
|
|
|
|
|
Password string `mapstructure:"password"`
|
|
|
|
|
Language string `mapstructure:"language"`
|
|
|
|
|
IsDemo bool `mapstructure:"is_demo"`
|
2026-04-30 11:05:55 +08:00
|
|
|
IsOffline bool `mapstructure:"is_offline"`
|
2026-02-25 10:56:06 +08:00
|
|
|
Edition string `mapstructure:"edition"`
|
2026-04-28 17:46:56 +08:00
|
|
|
IsEnterprise bool `mapstructure:"is_enterprise"`
|
2025-01-24 11:00:07 +08:00
|
|
|
Version string `mapstructure:"version"`
|
|
|
|
|
InstallDir string `mapstructure:"install_dir"`
|
|
|
|
|
ChangeUserInfo string `mapstructure:"change_user_info"`
|
|
|
|
|
EncryptKey string `mapstructure:"encrypt_key"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Conn struct {
|
|
|
|
|
Port string `mapstructure:"port"`
|
|
|
|
|
BindAddress string `mapstructure:"bindAddress"`
|
|
|
|
|
Ipv6 string `mapstructure:"ipv6"`
|
|
|
|
|
SSL string `mapstructure:"ssl"`
|
|
|
|
|
Entrance string `mapstructure:"entrance"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LogConfig struct {
|
|
|
|
|
Level string `mapstructure:"level"`
|
|
|
|
|
TimeZone string `mapstructure:"timeZone"`
|
|
|
|
|
LogName string `mapstructure:"log_name"`
|
|
|
|
|
LogSuffix string `mapstructure:"log_suffix"`
|
|
|
|
|
MaxBackup int `mapstructure:"max_backup"`
|
|
|
|
|
}
|