statistics

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncIgnoredFieldsCount

func IncIgnoredFieldsCount()

func IncIgnoredLinesCount

func IncIgnoredLinesCount()

func IncIgnoredPathsCount

func IncIgnoredPathsCount()

func Reset

func Reset()

Reset all statistics to zero

Types

type ExecutionStats

type ExecutionStats interface {
	GetIgnoredPathsCount() int  // counter for path not found in data
	GetIgnoredLinesCount() int  // counter for line skipped (flag --skip-line-on-error)
	GetIgnoredFieldsCount() int // counter for field skipped (flag --skip-field-on-error)

	ToJSON() []byte
}

func Compute

func Compute() ExecutionStats

Compute current statistics and give a snapshot

Jump to

Keyboard shortcuts

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