retention

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(req router.Request, _ router.Response) error

Migrate sets the last used time of the thread to the current time if it is not set.

func RunRetention

func RunRetention(policy time.Duration) func(req router.Request, resp router.Response) error

func SetLastUsedTime

func SetLastUsedTime(ctx context.Context, c kclient.Client, thread *v1.Thread) error

SetLastUsedTime sets the last used time for a thread and its parent thread if it has one. It does not call Update() on the thread, so the caller is responsible for calling Update() if needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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