Documentation ¶
Overview ¶
Package retention provides the retention policy enforcement service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` CheckInterval toml.Duration `toml:"check-interval"` }
Config represents the configuration for the retention service.
type Service ¶
type Service struct { MetaClient interface { Databases() []meta.DatabaseInfo DeleteShardGroup(database, policy string, id uint64) error PruneShardGroups() error } TSDBStore interface { ShardIDs() []uint64 DeleteShard(shardID uint64) error } // contains filtered or unexported fields }
Service represents the retention policy enforcement service.
func NewService ¶
NewService returns a configured retention policy enforcement service.
func (*Service) WithLogger ¶
WithLogger sets the logger on the service.
Click to show internal directories.
Click to hide internal directories.