Documentation ¶
Index ¶
- Constants
- func CastFunc(key interface{}) (uint64, error)
- func CombineKeys(keys []interface{}) interface{}
- func MD5Func(key interface{}) (uint64, error)
- func SHA1Func(key interface{}) (uint64, error)
- func SHA256Func(key interface{}) (uint64, error)
- func SHA512Func(key interface{}) (uint64, error)
- type HashFunc
- type HashMethod
- type ShardFunc
- type ShardMethod
Constants ¶
View Source
const ( Cast HashMethod = "cast" MD5 = "md5" SHA1 = "sha1" SHA256 = "sha256" SHA512 = "sha512" )
Variables ¶
This section is empty.
Functions ¶
func CombineKeys ¶
func CombineKeys(keys []interface{}) interface{}
func SHA256Func ¶
func SHA512Func ¶
Types ¶
type ShardMethod ¶
type ShardMethod string
const ( Jump ShardMethod = "jump" Mod = "mod" )
func (ShardMethod) Get ¶
func (s ShardMethod) Get() ShardFunc
Click to show internal directories.
Click to hide internal directories.