Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// node
NodeId int
NodeWeight int
MsgTTR int
MsgMaxRetry int
MsgMaxPushNum int
DataSavePath string
EnableCluster bool
HeartbeatInterval int
// RegisterAddr
RegisterAddr string
// etcd
EtcdEndPoints []string
// http server
HttpServAddr string
HttpServEnableTls bool
HttpServCertFile string
HttpServKeyFile string
// tcp server
TcpServAddr string
TcpServEnableTls bool
TcpServCertFile string
TcpServKeyFile string
// report addr
ReportHttpAddr string
ReportTcpAddr string
// log
LogTargetType string
LogFilename string
LogLevel int
LogMaxSize int
LogRotate bool
}
func LoadConfigFromFile ¶
func (*Config) SetDefault ¶
func (c *Config) SetDefault()
Click to show internal directories.
Click to hide internal directories.