result

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateReport

func GenerateReport(writer io.Writer, stat *Stat) error

func OpenResult

func OpenResult() error

Types

type Brief

type Brief map[entry.EntryError]int64

func (*Brief) AddCountFor

func (s *Brief) AddCountFor(typ entry.EntryError)

func (*Brief) Detail

func (s *Brief) Detail() string

func (*Brief) Total

func (s *Brief) Total() int64

type ClientStat

type ClientStat struct {
	LegalCount      int              `json:"l"`
	IllegalCount    int              `json:"i"`
	MaxIllegalLevel entry.EntryError `json:"m"`
}

func (*ClientStat) AddStat

func (c *ClientStat) AddStat(ee entry.EntryError)

type Stat

type Stat struct {
	Brief       Brief
	ClientCount int
	Clients     map[string]*ClientStat
	Detail      []*entry.LogEntry
}

func NewStat

func NewStat() *Stat

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳