modeldecoder

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 DecoderError

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

DecoderError represents an error due to JSON decoding.

func NewDecoderErrFromJSONIter

func NewDecoderErrFromJSONIter(err error) DecoderError

NewDecoderErrFromJSONIter returns a DecoderError where any text from the original input is stripped, when decoded via jsoniter.

func (DecoderError) Error

func (e DecoderError) Error() string

func (*DecoderError) Unwrap

func (e *DecoderError) Unwrap() error

type Input

type Input struct {
	// Base holds the base for decoding events.
	Base *modelpb.APMEvent
}

Input holds the input required for decoding an event.

type ValidationError

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

ValidationError represents an error due to JSON validation.

func NewValidationErr

func NewValidationErr(err error) ValidationError

NewValidationErr returns a ValidationError

func (ValidationError) Error

func (e ValidationError) Error() string

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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