diag

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: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Start    time.Time
	Stop     time.Time
	Severity recorder.Severity
	Detail   string
	Context  string
}

func DiagErrorf

func DiagErrorf(format string, a ...interface{}) Diagnostic

func DiagErrorfWithContext

func DiagErrorfWithContext(ctx string, format string, a ...interface{}) Diagnostic

func DiagFromErr

func DiagFromErr(err error) Diagnostic

func DiagFromErrWithContext

func DiagFromErrWithContext(ctx string, err error) Diagnostic

func DiagWarnf

func DiagWarnf(format string, a ...interface{}) Diagnostic

func DiagWarnfWithContext

func DiagWarnfWithContext(ctx string, format string, a ...interface{}) Diagnostic

func FromErrWithTimeContext

func FromErrWithTimeContext(ctx string, start time.Time, err error) Diagnostic

func Success

func Success(ctx string, start time.Time, d ...string) Diagnostic

func (Diagnostic) GetContext

func (r Diagnostic) GetContext() string

func (Diagnostic) GetDetail

func (r Diagnostic) GetDetail() string

func (Diagnostic) GetDetails

func (r Diagnostic) GetDetails() string

func (Diagnostic) GetSeverity

func (r Diagnostic) GetSeverity() recorder.Severity

Jump to

Keyboard shortcuts

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