statistics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name  string
	Value float64
}

type StatisticSet

type StatisticSet struct {
	Counters  map[string]uint64
	Durations map[string]float64
	Buckets   map[string]uint64
}

type Statistics

type Statistics struct {
	Names   map[string]StatisticSet
	Buckets []Bucket
	// contains filtered or unexported fields
}

func New

func New() *Statistics

func NewWithBuckets

func NewWithBuckets(buckets []float64) *Statistics

func (*Statistics) Add

func (s *Statistics) Add(name string, tagName string, tagValue string, duration float64)

func (*Statistics) Write

func (s *Statistics) Write(writer *http.ResponseWriter)

func (*Statistics) WriteGob

func (s *Statistics) WriteGob(writer *http.ResponseWriter)

Jump to

Keyboard shortcuts

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