Skip to content

wayne666/consistent-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

consistent hash


Description

Simple ConsistentHash library

Installation

$ go get github.com/wayne666/consistent-hash

Usage

import "github.com/wayne666/consistent-hash"

c := ConsistentHash.New()
c.Add("stationA")
c.Add("stationB")
c.Add("stationC")
c.Add("stationD")

station, error := c.Get("Wayne")

AUTHOR

Written by WayneZhou, cumtxhzyy[at]gmail.com

COPYRIGHT

Copyright (c) 2015 WayneZhou. This library is free software; you can redistribute it and/or modify it.

About

Consistent Hash in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages