Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeHasher32 ¶
func TypeHasher32(v interface{}) uint32
TypeHasher32 returns a hash for the specific key for internal sharding. By default, those types are supported as keys: KeyHasher, string, uint64, int64, uint32, int32, uint16, int16, uint8, int8, uint, int, float64, float32 and fmt.Stringer. Falls back to Fnv32(reflect.ValueOf(v).String()).
func TypeHasher64 ¶
func TypeHasher64(v interface{}) uint64
TypeHasher64 returns a hash for the specific key for internal sharding. By default, those types are supported as keys: KeyHasher, string, uint64, int64, uint32, int32, uint16, int16, uint8, int8, uint, int, float64, float32 and fmt.Stringer. Falls back to Fnv64(reflect.ValueOf(v).String()).
Types ¶
Click to show internal directories.
Click to hide internal directories.