package xxhash

import "go.opentelemetry.io/otel/attribute/internal/xxhash"

Package xxhash provides a wrapper around the xxhash library for attribute hashing.

Index

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

Hash wraps xxhash.Digest to provide an API friendly for hashing attribute values.

func New

func New() Hash

New returns a new initialized xxHash64 hasher.

func (Hash) Bool

func (h Hash) Bool(val bool) Hash

func (Hash) Float64

func (h Hash) Float64(val float64) Hash

func (Hash) Int64

func (h Hash) Int64(val int64) Hash

func (Hash) String

func (h Hash) String(val string) Hash

func (Hash) Sum64

func (h Hash) Sum64() uint64

Sum64 returns the current hash value.

func (Hash) Uint64

func (h Hash) Uint64(val uint64) Hash

Source Files

xxhash.go

Version
v1.40.0
Published
Feb 2, 2026
Platform
js/wasm
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.