package
Version:
v0.0.0-...-1ca43b3
Opens a new window with list of versions in this module.
Published: May 22, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
ServiceConfig *ServiceConfig `yaml:"serviceConfig"`
LogConfig *LogConfig `yaml:"logConfig"`
DbConfig *DbConfig `yaml:"dbConfig"`
}
type DbConfig struct {
RedisAddr string `yaml:"redisAddr"`
RedisPasswd string `yaml:"redisPasswd"`
RedisMode string `yaml:"redisMode"`
EsUrl string `yaml:"esUrl"`
EsUsername string `yaml:"esUsername"`
EsPasswd string `yaml:"esPasswd"`
}
type LogConfig struct {
LogPath string `yaml:"logPath"`
LogLevel string `yaml:"logLevel"`
LogMaxAge int `yaml:"logMaxAge"`
LogMaxSize int `yaml:"logMaxSize"`
LogMode string `yaml:"logMode"`
BackupCount int `yaml:"backupCount"`
}
type ServiceConfig struct {
Env string `yaml:"env"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.