Documentation ¶
Index ¶
- Variables
- type Proxy
- func (p *Proxy) Close()
- func (p *Proxy) CollectData()
- func (p *Proxy) GetPersistCache() types.PersistCache
- func (p *Proxy) GetServePort(id uint64) int
- func (p *Proxy) GetStatsProvider() interface{}
- func (p *Proxy) HandleCallback(w resp.ResponseWriter, r interface{})
- func (p *Proxy) HandleGetChunk(w resp.ResponseWriter, c *resp.Command)
- func (p *Proxy) HandleSetChunk(w resp.ResponseWriter, c *resp.CommandStream)
- func (p *Proxy) PersistCacheLen() int
- func (p *Proxy) Release()
- func (p *Proxy) Serve()
- func (p *Proxy) Wait()
- func (p *Proxy) WaitReady()
- type RedisAdapter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ECMaxGoroutine = 32
)
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) GetPersistCache ¶
func (p *Proxy) GetPersistCache() types.PersistCache
GetPersistCache implements cluster.ServerProvider interface.
func (*Proxy) GetServePort ¶
GetServePort implements cluster.ServerProvider interface. It round-robin selects a port to serve
func (*Proxy) GetStatsProvider ¶
func (p *Proxy) GetStatsProvider() interface{}
func (*Proxy) HandleCallback ¶
func (p *Proxy) HandleCallback(w resp.ResponseWriter, r interface{})
HandleCallback callback handler
func (*Proxy) HandleGetChunk ¶
func (p *Proxy) HandleGetChunk(w resp.ResponseWriter, c *resp.Command)
HandleGetChunk is the handler for "get chunk".
func (*Proxy) HandleSetChunk ¶
func (p *Proxy) HandleSetChunk(w resp.ResponseWriter, c *resp.CommandStream)
HandleSetChunk is the handler for "set chunk".
func (*Proxy) PersistCacheLen ¶
PersistCacheLen implements types.ServerStats interface.
type RedisAdapter ¶
type RedisAdapter struct {
// contains filtered or unexported fields
}
func NewRedisAdapter ¶
func (*RedisAdapter) Close ¶
func (a *RedisAdapter) Close()
Click to show internal directories.
Click to hide internal directories.