Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCache ¶
func CreateCache(w http.ResponseWriter, params []string)
Create a new cache group and set cacheName, capacity, selfAddr, and clusterAddr If cacheName already exists, changing only the capacity, selfAddr and clusterAddr parameters will not work
Types ¶
type HttpPool ¶
type HttpPool struct {
// contains filtered or unexported fields
}
func NewDefaultHttpPool ¶
func NewDefaultHttpPool() *HttpPool
func NewHttpPool ¶
func (*HttpPool) PickNode ¶
func (p *HttpPool) PickNode(key string) (peer node.NodeGetter, ok bool)
The key is passed through the hash ring to find the real host
func (*HttpPool) SetClusterAddr ¶
Register the cluster in the hash ring
Click to show internal directories.
Click to hide internal directories.