Documentation ¶
Index ¶
- Variables
- func InitConfig(baseConfPath, proxyConfPath string)
- func InitLogger(config *ServerConfig)
- func InitMySQL(config *MySQLConfig)
- func InitRedis(config *RedisConfig)
- type BaseConf
- type EtcdConfig
- type HttpProxyCommon
- type HttpProxyInfo
- type MySQLConfig
- type ProxyConf
- type RedisConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitConfig ¶
func InitConfig(baseConfPath, proxyConfPath string)
func InitLogger ¶
func InitLogger(config *ServerConfig)
func InitMySQL ¶
func InitMySQL(config *MySQLConfig)
func InitRedis ¶
func InitRedis(config *RedisConfig)
Types ¶
type BaseConf ¶
type BaseConf struct { Server *ServerConfig `yaml:"server"` MySQL *MySQLConfig `yaml:"mysql"` Redis *RedisConfig `yaml:"redis"` Etcd *EtcdConfig `yaml:"etcd"` }
type EtcdConfig ¶
type EtcdConfig struct {
Endpoints []string `yaml:"endpoints"`
}
type HttpProxyCommon ¶
type HttpProxyCommon struct {
Addr string `yaml:"addr"`
}
type HttpProxyInfo ¶
type MySQLConfig ¶
type ProxyConf ¶
type ProxyConf struct { Common *HttpProxyCommon `yaml:"common"` Http *HttpProxyInfo `yaml:"http"` Https *HttpProxyInfo `yaml:"https"` }
type RedisConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.