consistenthash

package
v0.0.0-...-f3e426d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 3 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 New

func New(replicas int, fn Hash) *ConsistentHash

func (*ConsistentHash) Add

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

func (*ConsistentHash) GetNode

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

type Hash

type Hash func(data []byte) uint32

Jump to

Keyboard shortcuts

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