report

package
v3.0.0-...-ad58db6 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

func NewReportCommand

func NewReportCommand(cu utils.CmdUtils) *cli.Command

func NewReportTotalsCommand

func NewReportTotalsCommand(cu utils.CmdUtils, reportTotals reportTotalsCmd) *cli.Command

func ReportElement

func ReportElement(dbStream io.Reader, rec ReportElementConfig) error

ReportElement generates report for single element

func ReportQuantity

func ReportQuantity(logStream io.Reader, rqc ReportQuantityConfig) error

ReportQuantity Generates a quantity report

func ReportTotals

func ReportTotals(logStream, dbStream io.Reader, rqc ReportTotalsConfig) error

func ReportUnresolved

func ReportUnresolved(logStream, dbStream io.Reader, ruc ReportUnresolvedConfig) error

ReportUnresolved generates report for unresolved elements

Types

type ElementReporter

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

func NewElementReporter

func NewElementReporter(c reporter.Config, list []shared.Element) *ElementReporter

func (ElementReporter) Flush

func (er ElementReporter) Flush() error

func (ElementReporter) Process

func (er ElementReporter) Process(ln *shared.LogNode) error

type QuantityReporter

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

func NewQuantityReporter

func NewQuantityReporter(config reporter.Config, descending bool) QuantityReporter

func (QuantityReporter) Flush

func (r QuantityReporter) Flush() error

Flush does nothing

func (QuantityReporter) Process

func (r QuantityReporter) Process(ln *shared.LogNode) error

Process writes single node

type ReportElementConfig

type ReportElementConfig struct {
	ElementName    string
	Descending     bool
	ParserConfig   parser.Config
	ResolverConfig resolver.Config
	ReporterConfig reporter.Config
}

type ReportQuantityConfig

type ReportQuantityConfig struct {
	DateFormat     string
	Descending     bool
	ParserConfig   parser.Config
	ReporterConfig reporter.Config
	FilterConfig   filter.Config
}

type ReportTotalsConfig

type ReportTotalsConfig struct {
	DateFormat     string
	ParserConfig   parser.Config
	ResolverConfig resolver.Config
	ReporterConfig reporter.Config
	FilterConfig   filter.Config
}

type ReportUnresolvedConfig

type ReportUnresolvedConfig struct {
	DateFormat     string
	ParserConfig   parser.Config
	ResolverConfig resolver.Config
	ReporterConfig reporter.Config
	FilterConfig   filter.Config
}

type SortTuple

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

type TotalReporter

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

func NewTotalReporter

func NewTotalReporter(c reporter.Config, db shared.DBNodeMap) *TotalReporter

func (TotalReporter) Flush

func (tr TotalReporter) Flush() error

func (TotalReporter) Process

func (tr TotalReporter) Process(ln *shared.LogNode) error

type UnsolvedReporter

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

UnsolvedReporter is unresolved reporter

func NewUnsolvedReporter

func NewUnsolvedReporter(config reporter.Config, db shared.DBNodeMap) *UnsolvedReporter

NewUnsolvedReporter returns reporter for unresolved elements

func (*UnsolvedReporter) Flush

func (r *UnsolvedReporter) Flush() error

Flush flushes the report

func (*UnsolvedReporter) Process

func (r *UnsolvedReporter) Process(ln *shared.LogNode) error

Process handles single node

Jump to

Keyboard shortcuts

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