monitor

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elapsed

type Elapsed time.Duration

func (Elapsed) String

func (e Elapsed) String() string

type KeyValue

type KeyValue = expvar.KeyValue

type Monitor

type Monitor interface {
	With(namespace string) Monitor
	Add(key string, delta int64)
	AddFloat(key string, delta float64)
	Delete(key string)
	Do(f func(root, namespace string, kv KeyValue))
	Get(key string) Var
	Set(key string, av Var)
	String() string
}

func NewMonitor

func NewMonitor(namespace string) Monitor

type String

type String string

func (String) String

func (s String) String() string

type Time

type Time time.Time

func (Time) String

func (t Time) String() string

type Var

type Var = expvar.Var

Jump to

Keyboard shortcuts

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