jump

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jump

type Jump struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump implements the jump consistent hash algorithm from the paper "A Fast, Minimal Memory, Consistent Hash Algorithm" by John Lamping, Eric Veach (2014) http://arxiv.org/abs/1406.2294

func New

func New() *Jump

New creates a new Jump balancer.

func (*Jump) Get

func (j *Jump) Get(path string) (*types.UpstreamAddress, error)

Get implements the balancing algorithm interface.

func (*Jump) Set

func (j *Jump) Set(buckets []*types.UpstreamAddress)

Set implements the balancing algorithm interface.

Jump to

Keyboard shortcuts

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