consistenthash

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashFunc

type HashFunc func(data []byte) uint32

type NodeMap

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

func NewNodeMap

func NewNodeMap(hashFunc HashFunc) *NodeMap

func (*NodeMap) AddNode

func (n *NodeMap) AddNode(keys ...string)

func (*NodeMap) IsEmpty

func (n *NodeMap) IsEmpty() bool

func (*NodeMap) PickNode

func (n *NodeMap) PickNode(key string) string

Jump to

Keyboard shortcuts

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