stats

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

func NewStatsCommand

func NewStatsCommand(cu utils.CmdUtils, stats statsCmd) *cli.Command

func Stats

func Stats(logFileName, dbFileName string, sc StatsConfig) error

Stats generates statistics report

Types

type StatsConfig

type StatsConfig struct {
	Now            time.Time
	ParserConfig   parser.Config
	ReporterConfig reporter.Config
}

type StatsData

type StatsData struct {
	DbFileName      string
	LogFileName     string
	DbRecordsCount  int
	LogRecordsCount int
	Now             time.Time
	LogFirstRecord  time.Time
	LogLastRecord   time.Time
}

type StatsReporter

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

func NewStatsReporter

func NewStatsReporter(c reporter.Config, stats *StatsData) *StatsReporter

func (StatsReporter) Flush

func (sr StatsReporter) Flush() error

func (StatsReporter) Process

func (sr StatsReporter) Process(ln *shared.LogNode) error

Jump to

Keyboard shortcuts

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