storage

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric interface {
	GetName() string
	GetType() string
	GetValue() any
	GetTypeForQuery() string
}

type Storage

type Storage interface {
	Ping(ctx context.Context) error
	Update(ctx context.Context, t string, n string, v string) error
	UpdateNew(ctx context.Context, t string, n string, delta *int64, value *float64) error
	UpdateBatch(ctx context.Context, m []metrics.Metric) error
	GetValue(ctx context.Context, t string, n string) (any, error)
	GetAllMetricsNew(ctx context.Context) ([]*metrics.Metric, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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