ring

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

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