Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consistent ¶
func New ¶
func New(fn Hash) *Consistent
func (*Consistent) Get ¶
func (m *Consistent) Get(key string) string
Get the item in the hash the provided key is in the range of.
func (*Consistent) IsEmpty ¶
func (m *Consistent) IsEmpty() bool
Returns true if there are no items available.
func (*Consistent) Next ¶
func (m *Consistent) Next(key string) string
Get the next item in the hash to the provided key.
Click to show internal directories.
Click to hide internal directories.