ring

package
v0.0.0-...-71dce46 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package 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