Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶ added in v0.107.0
func Hash(opts ...HashOption) [16]byte
Hash generates a hash for the provided options and returns the computed hash as a [16]byte.
func Hash64 ¶ added in v0.107.0
func Hash64(opts ...HashOption) uint64
Hash64 generates a hash for the provided options and returns the computed hash as a uint64.
Types ¶
type HashOption ¶ added in v0.107.0
type HashOption func(*hashWriter)
HashOption is a function that sets an option on the hash calculation.
func WithMap ¶ added in v0.107.0
func WithMap(m pcommon.Map) HashOption
WithMap adds a map to the hash calculation.
func WithString ¶ added in v0.107.0
func WithString(s string) HashOption
WithString adds a string to the hash calculation.
func WithValue ¶ added in v0.107.0
func WithValue(v pcommon.Value) HashOption
WithValue adds a value to the hash calculation.
Click to show internal directories.
Click to hide internal directories.