contract

package
v0.0.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter interface {
	// With returns a reporter with given severity
	With(value Severity) Reporter
	// Info prints a info message
	Info(text string, args ...interface{})
	// Notice prints a notice message
	Notice(text string, args ...interface{})
	// Warn prints a warn message
	Warn(text string, args ...interface{})
	// Success prints a success message
	Success(text string, args ...interface{})
	// Error prints a error message
	Error(text string, args ...interface{})
}

Reporter reports the execution

type Severity

type Severity int

Severity represent a reporter severity

const (
	// SeverityLow represents a low severity
	SeverityLow Severity = -1
	// SeverityNormal represents a normal severity
	SeverityNormal Severity = 0
	// SeverityHigh represents a high severity
	SeverityHigh Severity = 1
	// SeverityVeryHigh represents a very high severity
	SeverityVeryHigh Severity = 2
)

Jump to

Keyboard shortcuts

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