Skip to content

bydsky/nchash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nchash

Nginx consistent hash golang version
If you are using nginx consistent hash in upstream, this would give you the same result as nginx consistent hash

Using

Importing ::

import "github.com/bydsky/nchash"

Basic example usage ::

nodes := []string{"192.168.0.1:8888",
                  "192.168.0.2:8888",
                  "192.168.0.3:8888"}

nc := nchash.New(nodes)
server := nc.Get("test")

About

nginx consistent hash golang version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages