Documentation ¶ Index ¶ Constants func Fnv1a64(key []byte) uint32 type Continuum func NewKetama(servers []*Server, hashFn func(key []byte) uint32) *Continuum func (c *Continuum) Dispatch(key string) uint32 func (c *Continuum) Rebuild(servers []*Server) type HashKit type Server Constants ¶ View Source const KetamaPointsPerServer = 160 Variables ¶ This section is empty. Functions ¶ func Fnv1a64 ¶ func Fnv1a64(key []byte) uint32 Types ¶ type Continuum ¶ type Continuum struct { // contains filtered or unexported fields } func NewKetama ¶ func NewKetama(servers []*Server, hashFn func(key []byte) uint32) *Continuum func (*Continuum) Dispatch ¶ func (c *Continuum) Dispatch(key string) uint32 func (*Continuum) Rebuild ¶ func (c *Continuum) Rebuild(servers []*Server) type HashKit ¶ type HashKit interface { Dispatch(key string) uint32 Rebuild(servers []*Server) } type Server ¶ type Server struct { Name string Weight int64 Index uint32 } Source Files ¶ View all Source files fnv.go hashkit.go ketama.go md5.go Click to show internal directories. Click to hide internal directories.