consistenthash

package
v0.0.0-...-ad6e15a Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT 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(fn HashFunc) *NodeMap

func (*NodeMap) Add

func (m *NodeMap) Add(keys ...string)

func (*NodeMap) IsEmpty

func (m *NodeMap) IsEmpty() bool

func (*NodeMap) Pick

func (m *NodeMap) Pick(key string) string

Jump to

Keyboard shortcuts

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