reporter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResultRequestSent    = "SENT"
	ResultRequestNotSent = "NOT SENT"
	ResultRequestError   = "ERROR"
)

Variables

View Source
var (
	// ErrEmptyReport is returned when reports is empty
	ErrEmptyReport = errors.New("nothing to print due to empty reports")
)

Functions

This section is empty.

Types

type Report

type Report struct {
	ReqTarget     string
	ReqAuthMethod string
	Result        string
	RespBody      string
	RespStatus    string
}

Report records the results on the execution of each task

type Reports

type Reports []Report

Reports is a slice of Report

func (Reports) Print

func (reports Reports) Print() error

Print prints out each Report in Reports

Jump to

Keyboard shortcuts

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