package
Version:
v0.0.0-...-bc5e729
Opens a new window with list of versions in this module.
Published: Dec 9, 2017
License: MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package consistenthash provides an implementation of a ring hash.
Hash defines the function of hash
Map contains the info
New allocates and returns a new Map
func (m *Map) Add(keys ...int)
Add adds some keys to the hash.
Get gets the closest item in the hash to the provided key.
IsEmpty returns true if there are no items available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.