reporter

package
v3.0.0-...-216ab72 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReportItem

func GetReportItem(ln *shared.LogNode, db shared.DBNodeMap, config Config) reportItem

func GetTemplateFunctions

func GetTemplateFunctions(config Config) template.FuncMap

Types

type CommonConfig

type CommonConfig struct {
	Output io.Writer
	Color  bool
}

func NewCommonConfig

func NewCommonConfig(output io.Writer, color bool) CommonConfig

type Config

type Config struct {
	Output               io.Writer
	CSV                  bool
	Color                bool
	TotalsOnly           bool
	Totals               bool
	DateFormat           string
	Unresolved           bool
	SingleElement        string
	SingleFood           string
	CollapseLast         bool
	Collapse             bool
	ElementGroupByFood   bool
	ShortenStrings       bool
	UseOldRegReporter    bool
	InternalTemplateName string
	CSVSeparator         rune
}

Config contains the options for the reporter

func NewDefaultConfig

func NewDefaultConfig() Config

NewDefaultConfig returns the default reporter config

type Reporter

type Reporter interface {
	Process(ln *shared.LogNode) error
	Flush() error
}

Reporter is the reporting interface

Jump to

Keyboard shortcuts

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