package
Version:
v0.0.0-...-a59e072
Opens a new window with list of versions in this module.
Published: Dec 4, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Env string
Kitex Kitex `yaml:"kitex"`
MySQL MySQL `yaml:"mysql"`
Redis Redis `yaml:"redis"`
Registry Registry `yaml:"registry"`
}
GetConf gets configuration instance
type Kitex struct {
Service string `yaml:"service"`
Address string `yaml:"address"`
LogLevel string `yaml:"log_level"`
LogFileName string `yaml:"log_file_name"`
LogMaxSize int `yaml:"log_max_size"`
LogMaxBackups int `yaml:"log_max_backups"`
LogMaxAge int `yaml:"log_max_age"`
}
type MySQL struct {
DSN string `yaml:"dsn"`
}
type Redis struct {
Address string `yaml:"address"`
Username string `yaml:"username"`
Password string `yaml:"password"`
DB int `yaml:"db"`
}
type Registry struct {
RegistryAddress []string `yaml:"registry_address"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.