v1

package
v0.0.0-...-e20221d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsistentHash

type ConsistentHash struct {
	// contains filtered or unexported fields
}

func NewConsistentHash

func NewConsistentHash() *ConsistentHash

NewConsistentHash 创建 ConsistentHash 实例

func (*ConsistentHash) AddNode

func (c *ConsistentHash) AddNode(node string)

AddNode 添加节点

func (*ConsistentHash) GetNode

func (c *ConsistentHash) GetNode(key string) string

GetNode 获取节点

func (*ConsistentHash) RemoveNode

func (c *ConsistentHash) RemoveNode(node string)

RemoveNode 删除节点

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL