memstorage

package
v0.0.0-...-94b8695 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStorage

type MemStorage struct {
	Gauges   map[string]float64
	Counters map[string]int64
}

func NewMemStorage

func NewMemStorage() MemStorage

func (*MemStorage) GetAllMetricsNew

func (s *MemStorage) GetAllMetricsNew(ctx context.Context) ([]*metrics.Metric, error)

func (*MemStorage) GetValue

func (s *MemStorage) GetValue(ctx context.Context, t string, n string) (any, error)

func (*MemStorage) Ping

func (s *MemStorage) Ping(ctx context.Context) error

func (*MemStorage) Update

func (s *MemStorage) Update(ctx context.Context, t string, n string, v string) error

func (*MemStorage) UpdateBatch

func (s *MemStorage) UpdateBatch(ctx context.Context, m []metrics.Metric) error

func (*MemStorage) UpdateNew

func (s *MemStorage) UpdateNew(ctx context.Context, t string, n string, delta *int64, value *float64) error

Jump to

Keyboard shortcuts

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