Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Identify ¶
Identify takes the string representation of objects and creates a hash in the form of a uuid if a seed is not provided a random 32 byte key is generated using a timestamp
func SetHashKeyWithSeed ¶
func SetHashKeyWithSeed(s int64)
SetHashKeyWithSeed sets the seed and generates a new 32 key for the internal hash function
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner provides the ability to create a single hash.Hash that can be reused
func NewScanner ¶
func NewScanner() *Scanner
NewScanner returns an instance of scanner with the hash initialized using the math/rand package
func (*Scanner) Identify ¶
Identify takes the string representation of objects and creates a hash in the form of a uuid if a seed is not provided a random 32 byte key is generated using a timestamp
func (*Scanner) SetHashKeyWithSeed ¶
SetHashKeyWithSeed sets the seed and generates a new 32 key for the internal hash function