diagnostic

package
v1.62.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Type  Type
	Value string
}

Diagnostic contains diagnostic info.

func Logs

func Logs(logs string) Diagnostic

Logs creates a new instance of Diagnostic of type TypeLogs.

func Stack

func Stack(stack string) Diagnostic

Stack creates a new instance of Diagnostic of type TypeStack.

type Type

type Type int

Type is a type of diagnostic.

const (
	// TypeUnknown designates an unknown type of diagnostic.
	TypeUnknown Type = iota
	// TypeLogs designates a Diagnostic for logs.
	TypeLogs
	// TypeStack designates a Diagnostic for stack trace.
	TypeStack
)

Jump to

Keyboard shortcuts

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