Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoServers = errors.New("No valid server definitions found") ErrMalformedServer = errors.New("One of the servers is in an invalid format") )
Functions ¶
Types ¶
type Continuum ¶
type Continuum struct {
// contains filtered or unexported fields
}
func New ¶
func New(serverList []ServerInfo, newHash func() hash.Hash) *Continuum
Construct a new Continum for the given servers and hashing function
func NewFromFile ¶
type ServerInfo ¶
A non-zero value for Memory enables ketama weighted
Click to show internal directories.
Click to hide internal directories.