report

package
v0.0.0-...-603556f Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseReport

type BaseReport struct {
	// contains filtered or unexported fields
}

func NewBaseReport

func NewBaseReport(title string, w io.Writer) *BaseReport

func NewFile

func NewFile(name string) *BaseReport

func NewStdOut

func NewStdOut() *BaseReport

func (*BaseReport) Generate

func (b *BaseReport) Generate()

func (*BaseReport) Print

func (b *BaseReport) Print(msg string)

func (*BaseReport) Reset

func (b *BaseReport) Reset()

func (*BaseReport) SetTitle

func (b *BaseReport) SetTitle(title string)

func (*BaseReport) Title

func (b *BaseReport) Title() string

type Email

type Email struct {
	// contains filtered or unexported fields
}

func (*Email) Write

func (e *Email) Write(message []byte) (n int, err error)

type HTMLReport

type HTMLReport struct {
	*BaseReport
}

func NewHTMLFile

func NewHTMLFile(name string) *HTMLReport

func NewHTMLReport

func NewHTMLReport(bReport *BaseReport) *HTMLReport

func (*HTMLReport) Generate

func (b *HTMLReport) Generate()

type Reporter

type Reporter interface {
	Title() string
	SetTitle(title string)
	Print(msg string)
	Generate()
	Reset()
}

func NewEmail

func NewEmail(from string, to string, smtpHost string, smtpPort int, pass string, html bool) Reporter

Jump to

Keyboard shortcuts

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