memstats

package
v0.0.0-...-79153e9 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStats

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

MemStats structure is Receiver, that stores incremental and gauge data Params are ignored

func New

func New() *MemStats

New returns metrics receiver, that holds all data in memory map.

func (*MemStats) Get

func (m *MemStats) Get(key string) (value int64, found bool)

Get return metrics value associated with key

func (*MemStats) Receive

func (m *MemStats) Receive(e slf.Event)

Receive handles incoming event

func (*MemStats) Values

func (m *MemStats) Values() map[string]int64

Values returns copy of metrics values, currently available in MemStats

Jump to

Keyboard shortcuts

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