package
0.0.0-20241127015210-a90ff861486b
Repository: https://github.com/votono/go-metrics.git
Documentation: pkg.go.dev
# Functions
ConvertMapToSlice converts a map to a slice of metrics.
DecideShouldRetryAfterError checks if an error is retryable (database or file-related).
ExtractValue converts metric value to a string based on its type.
LogMetric logs metric details.
MetricsToHTML generates an HTML table of metrics, using a builder for performance.
ProcessMetricsDuplicates consolidates duplicate metrics in a slice by ID and type.
UpdateCounterMetric aggregates Counter metrics.
UpdateMetricInMap updates a metric in the given map, creating or updating as needed.
ValidateMetric checks if a metric is valid based on its type and fields.