Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple implement of consistent hash (hash ring).
Go
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
base.go
chash.go
chash_test.go
checker.go
checker_test.go
hash.go
hash_test.go
node.go
node_test.go

README.md

chash4go

A simple implement of consistent hash (hash ring) by Go.

Usage

  1. Ensure the project path in $GOPATH.

  2. Get and install the library dependencies:

# install go_lib
cd <$GOPATH1/src> # $GOPATH1 is the first part of $GOPATH.
git clone https://github.com/hyper-carrot/chash4go.git
  1. Test:
cd <your/chash4go/path>
go test

See the test files for details.

License

Copyright (C) 2013

Distributed under the BSD-style license, the same as Go.

Something went wrong with that request. Please try again.