type Hash func(data []byte) uint32
type Map struct {
// contains filtered or unexported fields
}
func New(replicas int, fn Hash) *Map
func (m *Map) Add(keys ...string)
Adds some keys to the hash.
func (m *Map) Get(key string) string
Gets the closest item in the hash to the provided key.
func (m *Map) IsEmpty() bool
Returns true if there are no items available.