identity

package
v0.0.0-...-713a0a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[K hashEqualer[K], V any] struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap[K hashEqualer[K], V any]() *Map[K, V]

func (*Map[K, V]) Delete

func (m *Map[K, V]) Delete(key K)

func (*Map[K, V]) Get

func (m *Map[K, V]) Get(key K) (val V, ok bool)

func (*Map[_, _]) Len

func (m *Map[_, _]) Len() int

func (*Map[K, V]) Set

func (m *Map[K, V]) Set(key K, val V)

type Metric

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

func OfMetric

func OfMetric(s Scope, m pmetric.Metric) Metric

func (Metric) Equals

func (ma Metric) Equals(mb Metric) bool

func (Metric) WriteHash

func (m Metric) WriteHash(h hash.Hash)

type Resource

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

func OfResource

func OfResource(r pcommon.Resource) Resource

func (Resource) Equals

func (ra Resource) Equals(rb Resource) bool

func (Resource) WriteHash

func (r Resource) WriteHash(h hash.Hash)

type Scope

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

func (Scope) Equals

func (sa Scope) Equals(sb Scope) bool

func (Scope) WriteHash

func (s Scope) WriteHash(h hash.Hash)

type Stream

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

func OfStream

func OfStream[DP dataPoint](m Metric, dp DP) Stream

func (Stream) Equals

func (sa Stream) Equals(sb Stream) bool

func (Stream) WriteHash

func (s Stream) WriteHash(h hash.Hash)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL