Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶
type CenterConfig ¶
type KafkaConfig ¶
type ReceiveConfig ¶
type RedisConfig ¶
type RedisConfig struct {
Host string `toml:"host,omitempty"`
Db int `toml:"db,omitempty"`
Password string `toml:"password,omitempty"`
MaxIdle int `toml:"maxIdle,omitempty"` // 连接池最大空闲连接数
MaxActive int `toml:"maxActive,omitempty"` // 连接池最大激活连接数
IdleTimeout int `toml:"idleTimeout,omitempty"` // 连接池最大激活连接数
ConnectTimeout int `toml:"connectTimeout,omitempty"` // 连接超时, 单位毫秒
ReadTimeout int `toml:"readTimeout,omitempty"` // 读取超时, 单位毫秒
WriteTimeout int `toml:"writeTimeout,omitempty"` // 写入超时, 单位毫秒
}
type SorakaConf ¶
type SorakaConf struct {
KafkaConf KafkaConfig `toml:"kafka,omitempty"`
ZkConf ZkConfig `toml:"zookeeper,omitempty"`
RedisConf RedisConfig `toml:"redis,omitempty"`
Logs string `toml:"logs,omitempty"`
AdminConf AdminConfig `toml:"admin,omitempty"`
ReceiveConf ReceiveConfig `toml:"receive,omitempty"`
CenterConf CenterConfig `toml:"center,omitempty"`
WorkerConf WorkerConfig `toml:"worker,omitempty"`
}
type WorkerConfig ¶
Click to show internal directories.
Click to hide internal directories.