stat

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryStat

type QueryStat struct {
	ClusterTable string
	Count        int64
	Sum          int64
}

type StatReport

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

func NewStat

func NewStat() *StatReport

func (*StatReport) IncQuery

func (m *StatReport) IncQuery(cluster, table string, elapse time.Duration)

func (*StatReport) StatInfo

func (m *StatReport) StatInfo() []*QueryStat

Jump to

Keyboard shortcuts

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