stats

package
v0.0.0-...-6093075 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsCollector

type StatsCollector struct {
	LastReport string
	// contains filtered or unexported fields
}

func NewStatsCollector

func NewStatsCollector(title string, interval time.Duration, top int) *StatsCollector

func (*StatsCollector) AddStats

func (s *StatsCollector) AddStats(c context.Context, since time.Time, queryFmt string, params ...interface{})

func (*StatsCollector) PrintStatsAndReset

func (s *StatsCollector) PrintStatsAndReset()

func (*StatsCollector) Reset

func (s *StatsCollector) Reset()

Jump to

Keyboard shortcuts

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