repositories

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

Documentation

Overview

The repository module defines interfaces for the metrics repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionMetric

type CollectionMetric interface {
	Update()
	UpdateRuntime()
	UpdateGopsutil()
	List(ctx context.Context) ([]metrics.Metrics, error)
}

type MetricStorage

type MetricStorage interface {
	Add(ctx context.Context, m metrics.Metrics) error
	BulkAdd(ctx context.Context, m []metrics.Metrics) error

	Get(ctx context.Context, m *metrics.Metrics) error
	List(ctx context.Context) ([]metrics.Metrics, error)
	Ping(ctx context.Context) bool
}

MatrixStorage is the main interface defining methods for interacting with the repository.

type RestoreMetricWrapper

type RestoreMetricWrapper interface {
	MetricStorage
	Save()
	Load()
}

RestoreMetricWrapper is an interface for a repository capable of saving and restoring dumps.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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