unmarshalertest

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NopMetricsUnmarshaler

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

NopMetricsUnmarshaler is a MetricsUnmarshaler that doesn't do anything with the inputs and just returns the metrics and error passed in.

func NewErrMetrics

func NewErrMetrics(err error) *NopMetricsUnmarshaler

NewErrMetrics provides a nop metrics unmarshaler with the passed in error as the Unmarshal error.

func NewNopMetrics

func NewNopMetrics() *NopMetricsUnmarshaler

NewNopMetrics provides a nop metrics unmarshaler with the default pmetric.Metrics and no error.

func NewWithMetrics

func NewWithMetrics(metrics pmetric.Metrics) *NopMetricsUnmarshaler

NewWithMetrics provides a nop metrics unmarshaler with the passed in metrics as the result of the Unmarshal and no error.

func (*NopMetricsUnmarshaler) Type

func (u *NopMetricsUnmarshaler) Type() string

Type of the serialized messages.

func (*NopMetricsUnmarshaler) Unmarshal

func (u *NopMetricsUnmarshaler) Unmarshal([][]byte) (pmetric.Metrics, error)

Unmarshal deserializes the records into metrics.

Jump to

Keyboard shortcuts

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