memory

package
v0.0.0-...-b507f95 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionMetricStorage

type CollectionMetricStorage struct {
	MemStorage
}

func NewCollectionMetricStorage

func NewCollectionMetricStorage() *CollectionMetricStorage

func (*CollectionMetricStorage) Update

func (collection *CollectionMetricStorage) Update()

func (*CollectionMetricStorage) UpdateGopsutil

func (collection *CollectionMetricStorage) UpdateGopsutil()

func (*CollectionMetricStorage) UpdateRuntime

func (collection *CollectionMetricStorage) UpdateRuntime()

type MemStorage

type MemStorage struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMemStorage

func NewMemStorage() *MemStorage

func (*MemStorage) Add

func (db *MemStorage) Add(ctx context.Context, m metrics.Metrics) error

func (*MemStorage) BulkAdd

func (db *MemStorage) BulkAdd(ctx context.Context, metricList []metrics.Metrics) error

func (*MemStorage) Get

func (db *MemStorage) Get(ctx context.Context, metric *metrics.Metrics) error

func (*MemStorage) List

func (db *MemStorage) List(ctx context.Context) ([]metrics.Metrics, error)

func (*MemStorage) Ping

func (db *MemStorage) Ping(ctx context.Context) bool

Jump to

Keyboard shortcuts

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