consistent_hash

package
v0.0.0-...-7e91c8f Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2014 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 Node

type Node interface {
	// A unique id for this node like an IP:PORT
	HashID() string
}

type Ring

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

func New

func New(l []Node, buckets uint16) Ring

func (Ring) Lookup

func (r Ring) Lookup(key []byte, b []Node) []Node

func (*Ring) MakeBuffer

func (r *Ring) MakeBuffer(n int) []Node

Jump to

Keyboard shortcuts

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