package
Version:
v0.0.0-...-2486f02
Opens a new window with list of versions in this module.
Published: Jul 1, 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"`
MetricsPort string `yaml:"metrics_port"`
EnablePprof bool `yaml:"enable_pprof"`
EnableGzip bool `yaml:"enable_gzip"`
EnableAccessLog bool `yaml:"enable_access_log"`
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.