recorder

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record interface {
	GetSeverity() Severity
	GetDetail() string
	GetContext() string
	GetDetails() string
}

type Recorder

type Recorder[T Record] interface {
	Record(r T)
	Get() Records
	Print()
}

func New

func New[T Record]() Recorder[T]

type Records

type Records interface {
	HasError() bool
	Error() error
}

type Severity

type Severity int
const (
	Severity_NONE Severity = iota
	Severity_WARNING
	Severity_ERROR
)

func (Severity) String

func (d Severity) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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