package
0.0.0-20240122065236-1d05f9631fc8
Repository: https://github.com/dimakoz/practicummetrics.git
Documentation: pkg.go.dev

# Functions

AddMetric adds model.MetricUnit to '_memStorage.storage' storage returns updated model.MetricUnit after that.
AddMetricToDB adds model.MetricUnit to a db returns updated model.MetricUnit after that.
AddMetricTxToDB adds model.MetricUnit to a db returns updated model.MetricUnit after that.
No description provided by the author
No description provided by the author
GetAllMetrics returns a list of model.MetricUnit from the storage.
GetAllMetricsFromDB returns a list of model.MetricUnit from the storage.
GetMetricByName returns a model.MetricUnit and nil error if found or model.EmptyMetric and error.
GetMetricByNameFromDB returns a model.MetricUnit and nil error if found or model.EmptyMetric and an error.
No description provided by the author
No description provided by the author
LoadVariant loads data from a file or returns errEmptyPath error.
SaveVariant saves data to a file or returns errEmptyPath error.
SetPrivateKey sets rsa.PrivateKey.
SetPublicKey sets rsa.PublicKey.
SetupFilePathStorage sets a path of a file.

# Structs

MemStorage represents storage.