summary

package
v1.46.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusTypes = []string{
	"success",
	"failure",
}

Functions

This section is empty.

Types

type StatusType

type StatusType int
const (
	Success StatusType = iota
	Failure
)

func (StatusType) MarshalJSON

func (statusType StatusType) MarshalJSON() ([]byte, error)

type Summary

type Summary struct {
	Status StatusType `json:"status"`
	Totals *Totals    `json:"totals"`
}

func New

func New(err error) *Summary

func (*Summary) Marshal

func (summary *Summary) Marshal() ([]byte, error)

type Totals

type Totals struct {
	Success int `json:"success"`
	Failure int `json:"failure"`
}

Jump to

Keyboard shortcuts

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