 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
func Encode(hasher *Murmur32Hasher, key string) (string, error)
Encode return the encoding of passed string
func Sum32WithSeed ¶ added in v5.2.1
Sum32WithSeed returns the MurmurHash3 sum of data
Types ¶
type Murmur32Hasher ¶
type Murmur32Hasher struct {
	// contains filtered or unexported fields
}
    Murmur32Hasher is a hash function implementing the murmur3 32 bits algorithm
func NewMurmur332Hasher ¶
func NewMurmur332Hasher(seed uint32) *Murmur32Hasher
NewMurmur332Hasher returns a new instance of the Murmur32Hasher
func (*Murmur32Hasher) Hash ¶
func (h *Murmur32Hasher) Hash(data []byte) uint32
Hash returns the murmur3 (32 bits) hash of a byte slice.
 Click to show internal directories. 
   Click to hide internal directories.