Documentation
¶
Overview ¶
Package Hash can be used to construct Hash values for data types.
Index ¶
- type Manager
- func (m *Manager) AddArray(arr []string) error
- func (m *Manager) AddBool(b bool) error
- func (m *Manager) AddInt32(i int32) error
- func (m *Manager) AddInt64(i int64) error
- func (m *Manager) AddMap(mVal map[string]string) error
- func (m *Manager) AddString(str string) error
- func (m *Manager) AddUint32(u uint32) error
- func (m *Manager) AddUint64(u uint64) error
- func (m *Manager) Generate() (string, error)
- func (m *Manager) ResetHash()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager struct represents the Hash Manager.
func (*Manager) AddArray ¶
AddArray method adds the given unsorted array content for hashing irrespective of the element order. Returns an error if the Hash is not initialized.
func (*Manager) AddBool ¶
AddBool method adds the given bool for hashing. Returns an error if encountered.
func (*Manager) AddInt32 ¶
AddInt32 method adds the given int32 for hashing. Returns an error if encountered.
func (*Manager) AddInt64 ¶
AddInt64 method adds the given int64 for hashing. Returns an error if encountered.
func (*Manager) AddMap ¶
AddMap method adds the given Map content for hashing irrespective of the element order. Returns an error if the Hash is not initialized.
func (*Manager) AddString ¶
AddString method adds the given string for hashing. Returns an error if encountered.
func (*Manager) AddUint32 ¶
AddUint32 method adds the given uint32 for hashing. Returns an error if encountered.
func (*Manager) AddUint64 ¶
AddUint64 method adds the given uint64 for hashing. Returns an error if encountered.