cache

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() string

DefaultPath returns the default cache file path: ~/.aimux/cache/last-seen.json

func Load

func Load(path string) ([]agent.Agent, error)

Load reads and unmarshals agents from the cache file. Returns an empty slice (not error) on missing file or corrupt JSON.

func Save

func Save(path string, agents []agent.Agent) error

Save marshals the agents as indented JSON and writes to path. Creates parent directories with MkdirAll if they don't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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