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: 229

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