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 func CreateRing(r *models.Ring) (torus.Ring, error) func NewUnionRing(oldRing torus.Ring, newRing torus.Ring) torus.Ring func RingTypeFromString(s string) (torus.RingType, bool) func Unmarshal(b []byte) (torus.Ring, error) 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. Source Files ¶ empty.goketama.gomod.goring_main.gosingle.gounion.go Click to show internal directories. Click to hide internal directories.