Documentation
¶
Overview ¶
Package tableiolatency holds the routines which manage the tableio statisticss.
Index ¶
- type Wrapper
- func (tiolw *Wrapper) Collect()
- func (tiolw Wrapper) Description() string
- func (tiolw Wrapper) EmptyRowContent() string
- func (tiolw Wrapper) FirstCollectTime() time.Time
- func (tiolw Wrapper) HaveRelativeStats() bool
- func (tiolw Wrapper) Headings() string
- func (tiolw Wrapper) LastCollectTime() time.Time
- func (tiolw *Wrapper) ResetStatistics()
- func (tiolw Wrapper) RowContent() []string
- func (tiolw *Wrapper) Tiol() *tableio.TableIo
- func (tiolw Wrapper) TotalRowContent() string
- func (tiolw Wrapper) WantRelativeStats() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper represents the contents of the data collected related to tableio statistics
func NewTableIoLatency ¶
NewTableIoLatency creates a wrapper around tableio statistics
func (*Wrapper) Collect ¶
func (tiolw *Wrapper) Collect()
Collect data from the db, then merge it in.
func (Wrapper) Description ¶
Description returns a description of the table
func (Wrapper) EmptyRowContent ¶
EmptyRowContent returns an empty string of data (for filling in)
func (Wrapper) FirstCollectTime ¶
FirstCollectTime returns the time of the first collection
func (Wrapper) HaveRelativeStats ¶
HaveRelativeStats is true for this object
func (Wrapper) LastCollectTime ¶
LastCollectTime returns the time of the last collection
func (*Wrapper) ResetStatistics ¶ added in v1.1.0
func (tiolw *Wrapper) ResetStatistics()
ResetStatistics resets the statistics to last values
func (Wrapper) RowContent ¶
RowContent returns the rows we need for displaying
func (Wrapper) TotalRowContent ¶
TotalRowContent returns all the totals
func (Wrapper) WantRelativeStats ¶
WantRelativeStats returns if we want to see relative stats