Documentation
¶
Index ¶
- type Collector
- func (c *Collector) RunAll(ctx context.Context) *GCResults
- func (c *Collector) RunContextHistoryCleanup(ctx context.Context) int64
- func (c *Collector) RunConversationCleanup(ctx context.Context) int64
- func (c *Collector) RunEntityPruning(ctx context.Context) int64
- func (c *Collector) RunOrphanedChunkCleanup(ctx context.Context) int64
- func (c *Collector) RunRunContextCleanup(ctx context.Context) int64
- func (c *Collector) RunTTLCleanup(ctx context.Context) int64
- func (c *Collector) Start()
- func (c *Collector) Stop()
- type GCResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector performs background garbage collection on storage data.
func NewCollector ¶
NewCollector creates a new garbage collector.
func (*Collector) RunAll ¶
RunAll runs all garbage collection tasks immediately. This is useful for manual/CLI invocations.
func (*Collector) RunContextHistoryCleanup ¶
RunContextHistoryCleanup removes old context version history entries.
func (*Collector) RunConversationCleanup ¶
RunConversationCleanup removes old conversations based on retention policy.
func (*Collector) RunEntityPruning ¶
RunEntityPruning removes stale entities based on retention policy.
func (*Collector) RunOrphanedChunkCleanup ¶
RunOrphanedChunkCleanup removes chunks whose parent documents no longer exist.
func (*Collector) RunRunContextCleanup ¶
RunRunContextCleanup removes old run-scoped context entries.
func (*Collector) RunTTLCleanup ¶
RunTTLCleanup removes context entries past their TTL expiration. This runs more frequently than the main GC cycle.