userlatency

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package userlatency holds the routines which manage the user latency information

Index

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 wraps a UserLatency struct

func NewUserLatency

func NewUserLatency(cfg *config.Config, db *sql.DB) *Wrapper

NewUserLatency creates a wrapper around UserLatency

func (*Wrapper) Collect

func (ulw *Wrapper) Collect()

Collect data from the db, then sort the results.

func (Wrapper) Description

func (ulw Wrapper) Description() string

Description returns a description of the table

func (Wrapper) EmptyRowContent

func (ulw Wrapper) EmptyRowContent() string

EmptyRowContent returns an empty string of data (for filling in)

func (Wrapper) FirstCollectTime

func (ulw Wrapper) FirstCollectTime() time.Time

FirstCollectTime returns the time the first value was collected

func (Wrapper) HaveRelativeStats

func (ulw Wrapper) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (Wrapper) Headings

func (ulw Wrapper) Headings() string

Headings returns the headings for a table

func (Wrapper) LastCollectTime

func (ulw Wrapper) LastCollectTime() time.Time

LastCollectTime returns the time the last value was collected

func (Wrapper) Len

func (ulw Wrapper) Len() int

Len return the length of the result set

func (*Wrapper) ResetStatistics added in v1.1.0

func (ulw *Wrapper) ResetStatistics()

ResetStatistics resets the statistics to last values

func (Wrapper) RowContent

func (ulw Wrapper) RowContent() []string

RowContent returns the rows we need for displaying

func (Wrapper) TotalRowContent

func (ulw Wrapper) TotalRowContent() string

TotalRowContent returns all the totals

func (Wrapper) WantRelativeStats

func (ulw Wrapper) WantRelativeStats() bool

WantRelativeStats indiates if we want relative statistics

Jump to

Keyboard shortcuts

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