Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPoolName = "default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Port int
AdminHost string
AdminPort int
LogLevel string
LogDir string
LogFormat string
Accounts map[string]string
EnableAccessLog bool
AdminRedis RedisConf
Pool RedisPool
// Default publish params
TTLSecond int
DelaySecond int
TriesNum int
// Default consume params
TTRSecond int
TimeoutSecond int
}
type PresetConfigForTest ¶ added in v1.0.12
type PresetConfigForTest struct {
*Config
// contains filtered or unexported fields
}
func CreatePresetForTest ¶ added in v1.0.12
func CreatePresetForTest(version string, pools ...string) (*PresetConfigForTest, error)
func (*PresetConfigForTest) Destroy ¶ added in v1.0.12
func (presetConfig *PresetConfigForTest) Destroy()
type RedisConf ¶
type RedisConf struct {
Addr string
Password string
DB int
PoolSize int
MigrateTo string // If this is not empty, all the PUBLISH will go to that pool
MasterName string
Version string
SentinelPassword string
}
func (*RedisConf) IsSentinel ¶
IsSentinel return whether the pool was running in sentinel mode
Click to show internal directories.
Click to hide internal directories.