Discover Packages
github.com/yuleihua/trade
conf
package
Version:
v0.0.0-...-33fa9ae
Opens a new window with list of versions in this module.
Published: Sep 16, 2020
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
Documentation
¶
type Cache struct {
Address string `yaml:"address"`
Password string `yaml:"password"`
DialTimeout int `yaml:"dial_timeout"`
ReadTimeout int `yaml:"read_timeout"`
WriteTimeout int `yaml:"write_timeout"`
PoolSize int `yaml:"pool_size"`
}
type Common struct {
IsRelease bool `yaml:"is_release"`
LogLevel int `yaml:"log_level"`
CPUs int `yaml:"cpus"`
LogPath string `yaml:"log_path"`
LogFile string `yaml:"log_file"`
AppFile string `yaml:"app_file"`
}
type Database struct {
IsDebug bool `yaml:"is_debug"`
Dsn string `yaml:"dsn"`
SqlFile string `yaml:"sql_log"`
IdleConn int `yaml:"idle_conn"`
MaxConn int `yaml:"max_conn"`
LifeTime int `yaml:"lifeTime"`
}
type Metrics struct {
IsOnline bool `yaml:"is_online"`
FreqSec time .Duration `yaml:"freq_sec"`
Address string `yaml:"address"`
}
type Opentracing struct {
IsOnline bool `yaml:"is_online"`
Type string `yaml:"type"`
ServiceName string `yaml:"service_name"`
Address string `yaml:"address"`
}
type Session struct {
Type string `yaml:"type"`
Server string `yaml:"server"`
Password string `yaml:"password"`
}
type WebServer struct {
AppName string `yaml:"app"`
Addr string `yaml:"address"`
DomainApi string `yaml:"domain_api"`
Origins []string `yaml:"origins"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.