package
0.0.0-20250203001930-13b3ed95fc31
Repository: https://github.com/davincible/d-utils.git
Documentation: pkg.go.dev
# Functions
DefaultConfig returns a new Config with default values.
NewStorage creates a new storage system.
NewStorageConfig creates a StorageConfig from a Config.
NewTimeSeries creates a new partitioned TimeSeriesCache.
WrapPartitionError wraps an error with partition context.
WrapStorageError wraps an error with storage context.
# Variables
ErrInvalidConfig indicates an invalid configuration.
ErrInvalidTimeRange indicates an invalid time range.
ErrItemNotFound indicates an item was not found.
ErrPartitionNotFound indicates a partition was not found.
ErrStorageCorrupted indicates corrupted storage.
# Structs
CacheStats represents statistics about the cache.
Config represents the cache configuration.
Iterator represents a time series iterator.
Partition represents a time-based partition of the cache.
PartitionError wraps partition-related errors.
PartitionStats returns statistics for a specific partition.
Storage handles persistent storage operations for the time series cache.
StorageConfig represents configuration specific to the storage system.
StorageError wraps storage-related errors.
TimeSeriesCache represents a partitioned cache optimized for time series data.
TimeSeriesItem represents a single time series data point.