├── .gitignore ├── LICENSE ├── README.md ├── core ├── algorithm.go ├── algorithm_test.go ├── error.go └── host.go ├── go.mod ├── main.go ├── proxy └── proxy.go └── server ├── README.md └── main.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/README.md -------------------------------------------------------------------------------- /core/algorithm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/core/algorithm.go -------------------------------------------------------------------------------- /core/algorithm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/core/algorithm_test.go -------------------------------------------------------------------------------- /core/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/core/error.go -------------------------------------------------------------------------------- /core/host.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/core/host.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jasonkayzk/consistent-hashing-demo 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/main.go -------------------------------------------------------------------------------- /proxy/proxy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/proxy/proxy.go -------------------------------------------------------------------------------- /server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/server/README.md -------------------------------------------------------------------------------- /server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonkayZK/consistent-hashing-demo/HEAD/server/main.go --------------------------------------------------------------------------------