metrics

package
v0.0.0-...-aa28848 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func Init

func Init() Metrics

func (*Metrics) Decr

func (m *Metrics) Decr(key string) int64

func (*Metrics) Get

func (m *Metrics) Get(key string) (int64, bool)

func (*Metrics) GetStats

func (m *Metrics) GetStats() map[string]int64

func (*Metrics) Incr

func (m *Metrics) Incr(key string) int64

func (*Metrics) IncrSet

func (m *Metrics) IncrSet(key string, i int64) int64

func (*Metrics) StartTime

func (m *Metrics) StartTime() time.Time

func (*Metrics) Uptime

func (m *Metrics) Uptime() time.Duration

Jump to

Keyboard shortcuts

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