Documentation ¶
Overview ¶
Package jumphash provides a jump consistent hash implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
Hash takes a key and the number of buckets, returns an integer in the range [0, buckets). If the number of buckets is not greater than 1 then 1 is used.
func HashString ¶
HashString takes string as key instead of integer and uses CRC-64 to generate key.
Types ¶
Click to show internal directories.
Click to hide internal directories.