Documentation
¶
Overview ¶
author: Xiong Chuan Liang date: 2015-2-20
Index ¶
Constants ¶
View Source
const DEFAULT_REPLICAS = 160
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consistent ¶
type Consistent struct {
Nodes map[uint32]Node
Resources map[int]bool
sync.RWMutex
// contains filtered or unexported fields
}
func NewConsistent ¶
func NewConsistent() *Consistent
func (*Consistent) Add ¶
func (c *Consistent) Add(node *Node) bool
func (*Consistent) Get ¶
func (c *Consistent) Get(key string) Node
func (*Consistent) Remove ¶
func (c *Consistent) Remove(node *Node)
Click to show internal directories.
Click to hide internal directories.