Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSentinelsBrokenErr = errors.New("all sentinels unavailable")
Functions ¶
This section is empty.
Types ¶
type DbConnector ¶
type DbConnector struct{}
type MongoConnector ¶
type MongoConnector struct { Username string Password string // contains filtered or unexported fields }
func NewMongoBalancer ¶
func NewMongoBalancer(username, password string, addrs []string) *MongoConnector
func (*MongoConnector) CheckHealth ¶
func (m *MongoConnector) CheckHealth(addr string) bool
func (*MongoConnector) ChooseBackEnd ¶
func (m *MongoConnector) ChooseBackEnd() string
type Proxy ¶
type Proxy struct { Tracks map[string]track // contains filtered or unexported fields }
func (*Proxy) DeleteConnection ¶
type ProxyBridge ¶
type ProxyBridge struct{}
func (*ProxyBridge) Proxy ¶
func (pb *ProxyBridge) Proxy(clientConn, redisConn net.Conn)
type RedisConnector ¶
type RedisConnector struct {
// contains filtered or unexported fields
}
func NewRedisConnector ¶
func NewRedisConnector(requestTimeout int) *RedisConnector
func (*RedisConnector) Ping ¶
func (rc *RedisConnector) Ping(addr string) error
type SentinelConnector ¶
type SentinelConnector struct {
// contains filtered or unexported fields
}
func NewSentinelConnector ¶
func NewSentinelConnector(sentinelAddrList []string, requestTimeout int) *SentinelConnector
func (*SentinelConnector) AddSentinelClient ¶
func (sc *SentinelConnector) AddSentinelClient(sentinelAddr string)
func (*SentinelConnector) GetActualRedisAddr ¶
func (sc *SentinelConnector) GetActualRedisAddr(masterName string) (string, error)
Click to show internal directories.
Click to hide internal directories.