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 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.