cache

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type History

type History struct {
	sync.RWMutex
	Data map[string]dataobj.MetricValue
}
var MetricHistory *History

func NewHistory

func NewHistory() *History

func (*History) Clean

func (h *History) Clean()

func (*History) Get

func (h *History) Get(key string) (dataobj.MetricValue, bool)

func (*History) Set

func (h *History) Set(key string, item dataobj.MetricValue)

Jump to

Keyboard shortcuts

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