Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Name string // 服务名 Version string // 版本号 Env enum.EnvType TimeFormat string `yaml:"timeFormat"` ConfigFileNames []string `yaml:"configFileNames"` Server struct { Http Transport Rpc Transport } ServiceKV map[string]any `yaml:"serviceKV"` // 业务自定义kv }
App 应用服务相关配置信息
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AppServiceKV ¶
type Log ¶
type Log struct { Level enum.LoggerLevel // 日志级别 默认值是 info FileSizeMax uint16 `yaml:"fileSizeMax"` // 单位是MB 默认值是 10MB FileAgeMax uint16 `yaml:"fileAgeMax"` // 留存天数 DirPath string `validator:"dir" yaml:"dirPath"` // 日志文件夹路径 默认 ./logs }
Log config model
日志文件名 xxx/logs/${App.Service}-2006-01-01-150405.log
Click to show internal directories.
Click to hide internal directories.