metrics

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	CommitsProcessed       int32
	FilesProcessed         int32
	TransgressionsFound    int32
	TransgressionsIgnored  int32
	TransgressionsReported int32
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) Duration

func (m *Metrics) Duration() (float64, error)

func (*Metrics) IncrementCommitsProcessed

func (m *Metrics) IncrementCommitsProcessed()

func (*Metrics) IncrementFilesProcessed

func (m *Metrics) IncrementFilesProcessed()

func (*Metrics) IncrementTransgressionsFound

func (m *Metrics) IncrementTransgressionsFound()

func (*Metrics) IncrementTransgressionsIgnored

func (m *Metrics) IncrementTransgressionsIgnored()

func (*Metrics) IncrementTransgressionsReported

func (m *Metrics) IncrementTransgressionsReported()

func (*Metrics) StartTimer

func (m *Metrics) StartTimer()

func (*Metrics) StopTimer

func (m *Metrics) StopTimer()

Jump to

Keyboard shortcuts

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