cache

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 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 {
	Cpu    float64
	Memory float64
	Time   time.Time
}

func (*Metrics) DeepCopy

func (m *Metrics) DeepCopy() *Metrics

type MetricsCache

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

func NewMetricsCache

func NewMetricsCache(size int64) *MetricsCache

func (*MetricsCache) Put

func (r *MetricsCache) Put(m *Metrics)

func (*MetricsCache) Read

func (r *MetricsCache) Read(size int64) []*Metrics

Jump to

Keyboard shortcuts

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