//
pkg.gl
Category
github.com/timebertt/kubernetes-controller-sharding
pkg
sharding
consistenthash
package
0.6.0
Repository:
https://github.com/timebertt/kubernetes-controller-sharding.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
2
Files
66 SLOC
#
Functions
New
New creates a new hash ring.
#
Constants
DefaultTokensPerNode
DefaultTokensPerNode is the default number of virtual nodes per node.
#
Variables
DefaultHash
DefaultHash is the default Hash used by Ring.
#
Structs
Ring
Ring implements consistent hashing, aka ring hash (not thread-safe).
#
Type aliases
Hash
Hash is a function computing a 64-bit digest.