jsonchecker

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Retries    = 13
	RetryDelay = eventcache.EventRetryTimer + (1 * time.Second)
)

Functions

func JsonCheck

func JsonCheck(jsonFile *os.File, checker ec.MultiEventChecker, log *logrus.Logger) error

JsonCheck checks a JSON string using the new eventchecker library.

func JsonTestCheck

func JsonTestCheck(t *testing.T, checker ec.MultiEventChecker) error

JsonTestCheck checks a JSON file

func JsonTestCheckExpect added in v0.8.4

func JsonTestCheckExpect(t *testing.T, checker ec.MultiEventChecker, expectCheckerFailure bool) error

Types

type DebugError

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

DebugError is an error that will create a debug output message

func NewDebugError

func NewDebugError(err error) *DebugError

func (*DebugError) Error

func (e *DebugError) Error() string

Error returns the error message

func (*DebugError) Unwrap

func (e *DebugError) Unwrap() error

Unwrap returns the original error

type JsonEOF

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

JsonEOF is a type of error where we went over all the events and there was no match.

The reason to have a special error is that there are cases where the events we are looking for might not have been processed yet. In these cases, we need to retry.

func (*JsonEOF) Error

func (e *JsonEOF) Error() string

Error returns the error message

func (*JsonEOF) Unwrap

func (e *JsonEOF) Unwrap() error

Unwrap returns the original error

Jump to

Keyboard shortcuts

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