monitor

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

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

func (*Metric) Add

func (m *Metric) Add(val uint64) (newValue uint64)

func (*Metric) AddInt64

func (m *Metric) AddInt64(val int64) (newValue uint64)

func (*Metric) Get

func (m *Metric) Get() (val uint64)

func (*Metric) Set

func (m *Metric) Set(val uint64)

type Monitor

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

func NewMonitor

func NewMonitor(appName string, nameList ...string) (m *Monitor)

func (*Monitor) Add

func (m *Monitor) Add(name string, val uint64) (newValue uint64, exists bool)

func (*Monitor) AddInt64

func (m *Monitor) AddInt64(name string, val int64) (newValue uint64, exists bool)

func (*Monitor) Get

func (m *Monitor) Get(name string) (val uint64, exists bool)

func (*Monitor) GetMetric

func (m *Monitor) GetMetric(name string) (metric *Metric, exists bool)

func (*Monitor) Set

func (m *Monitor) Set(name string, val uint64)

Jump to

Keyboard shortcuts

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