hashring

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashRing

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

func NewHashRing

func NewHashRing(weights map[string]int, spotsArgs ...int) *HashRing

func (*HashRing) Append

func (h *HashRing) Append(nodeKey string, weight int)

func (*HashRing) Locate

func (h *HashRing) Locate(s string) string

func (*HashRing) Remove

func (h *HashRing) Remove(nodeKey string)

func (*HashRing) Update

func (h *HashRing) Update(nodeKey string, weight int)

Jump to

Keyboard shortcuts

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