unmarshalertest

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NopLogsUnmarshaler added in v0.112.0

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

NopLogsUnmarshaler is a LogsUnmarshaler that doesn't do anything with the inputs and just returns the logs and error passed in.

func NewErrLogs added in v0.112.0

func NewErrLogs(err error) *NopLogsUnmarshaler

NewErrLogs provides a nop logs unmarshaler with the passed in error as the Unmarshal error.

func NewNopLogs added in v0.112.0

func NewNopLogs() *NopLogsUnmarshaler

NewNopLogs provides a nop logs unmarshaler with the default plog.Logs and no error.

func NewWithLogs added in v0.112.0

func NewWithLogs(logs plog.Logs) *NopLogsUnmarshaler

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

func (*NopLogsUnmarshaler) Type added in v0.112.0

func (u *NopLogsUnmarshaler) Type() string

Type of the serialized messages.

func (*NopLogsUnmarshaler) Unmarshal added in v0.112.0

func (u *NopLogsUnmarshaler) Unmarshal([][]byte) (plog.Logs, error)

Unmarshal deserializes the records into logs.

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