Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DistributedMap ¶
type DistributedMap struct {
// contains filtered or unexported fields
}
func New ¶
func New(replicas int, hashFun Hash) *DistributedMap
func (*DistributedMap) GetNodeAddr ¶
func (d *DistributedMap) GetNodeAddr(key string) (string, error)
获取当前key在那台节点上
Click to show internal directories.
Click to hide internal directories.