lifecycle

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles memory lifecycle operations.

func NewManager

func NewManager(st store.Store, logger *slog.Logger) *Manager

NewManager creates a new lifecycle manager.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, dryRun bool) (*Report, error)

Run executes all lifecycle operations.

type Report

type Report struct {
	Expired      int `json:"expired"`
	Decayed      int `json:"decayed"`
	Consolidated int `json:"consolidated"`
}

Report summarizes the results of a lifecycle run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL