package
module
Version:
v0.0.0-...-84eb962
Opens a new window with list of versions in this module.
Published: Mar 6, 2014
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Rendezvous
rendezvous
is a Go implementation of rendezvous
hashing (also known as highest random weight hashing).
This implementation is not currently Go-routine safe at all.
API documentation
Documentation
¶
New creates a new Hash with the given keys (optional).
Add takes any number of nodes and adds them to this Hash.
Get returns the node with the highest score for the given key. If this Hash
has no nodes, an empty string is returned.
GetN returns n nodes for the given key, ordered by descending score.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.