ring

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

ring is the package containing implementations of the consistent hash ring, a pure function which provides a permutation of peers where a block can live, known by all members of the cluster.

Index

Constants

View Source
const (
	Empty torus.RingType = iota
	Single
	Mod
	Union
	Ketama
)

Variables

This section is empty.

Functions

func CreateRing

func CreateRing(r *models.Ring) (torus.Ring, error)

func NewUnionRing

func NewUnionRing(oldRing torus.Ring, newRing torus.Ring) torus.Ring

func RingTypeFromString

func RingTypeFromString(s string) (torus.RingType, bool)

func Unmarshal

func Unmarshal(b []byte) (torus.Ring, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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