stats

package module
v0.0.0-...-3ba42d5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 1 Imported by: 272 modules, 265 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(key string)

func Reset

func Reset()

func Set

func Set(key string, value ValueType)

Types

type StatsCollector

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

func New

func New() *StatsCollector

func (*StatsCollector) Add

func (s *StatsCollector) Add(key string, delta ValueType) (v ValueType)

func (*StatsCollector) Data

func (s *StatsCollector) Data() StatsType

func (*StatsCollector) Del

func (s *StatsCollector) Del(key string)

func (*StatsCollector) Get

func (s *StatsCollector) Get(key string) (v ValueType)

func (*StatsCollector) Reset

func (s *StatsCollector) Reset()

func (*StatsCollector) Set

func (s *StatsCollector) Set(key string, value ValueType)

type StatsType

type StatsType map[string]ValueType

func Data

func Data() StatsType

type ValueType

type ValueType float64

func Add

func Add(key string, delta ValueType) ValueType

func Get

func Get(key string) ValueType

Jump to

Keyboard shortcuts

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