Documentation ¶
Index ¶
Constants ¶
View Source
const ( HashFunctionIdent = 0 HashFunctionMurmur = 1 HashFunctionCity = 2 )
Pre-defined hash functions
Variables ¶
This section is empty.
Functions ¶
func ApplyHashFunction ¶
func ApplyHashFunction(inp []byte, hf HashFunctionType) ([]byte, error)
func ToString ¶
func ToString(hf HashFunctionType) string
Types ¶
type HashFunctionType ¶
type HashFunctionType int
func HashFunctionByName ¶
func HashFunctionByName(hfn string) (HashFunctionType, error)
Click to show internal directories.
Click to hide internal directories.