Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
// Server uuid
ServerId string `yaml:"server_id" json:"server_id"`
// Redis 连接地址
RedisUrl string `yaml:"redis_url" json:"redis_url"`
// 哨兵 下使用的DB
RedisSDBIndex int `yaml:"redis_sdb_index" json:"redis_sdb_index"`
// 主服务别名
RedisMasterName string `yaml:"redis_master_name" json:"redis_master_name"`
// Redis 哨兵群组
RedisSentinelGroup []string `yaml:"redis_sentinel_group" json:"redis_sentinel_group"`
// ETCD 集群组
ETCDClusterList []string `yaml:"etcd_cluster_list" json:"etcd_cluster_list"`
// nats queue url
NatsUrl string `yaml:"nats_url" json:"nats_url"`
// 服务监听地址
ListenAddr string `yaml:"listen_addr" json:"listen_addr"`
// 日志级别
LogLevel string `yaml:"log_level" json:"log_level"`
LogFile string `yaml:"log_file" json:"log_file"`
// pprof
Pprof bool `yaml:"pprof" json:"pprof"`
}
type ConfServer ¶
Click to show internal directories.
Click to hide internal directories.