hash

package
v0.0.0-...-654a8ab Latest Latest
Warning

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

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

Documentation

Overview

Package hash contains types for hashing and consistent hash rings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(b []byte) int

type Ring

type Ring interface {
	Insert(node.Type)
	Remove(node.Type)

	Search(string) node.Type
	SearchN(string, int) []node.Type
}

func NewRing

func NewRing(vN int) Ring

NewRing creates a new Ring with the requested amount of virtual nodes that are used to balance the hash ring.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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