Skip to main content

Crate aa_storage_memory

Crate aa_storage_memory 

Source
Expand description

In-memory aa-storage driver.

DashMap- and parking_lot-backed implementations of the six storage traits, for unit/integration tests and local development without a real database. State is ephemeral — it lives only for the life of the process.

§Driver registration

Call register from boot code to announce all six backends to an aa_storage::Registry under DRIVER_NAME ("memory"), so an agent-assembly.toml [storage] section can select them by name. The per-kind factory types build a store from its [storage.memory] subsection (which the memory driver ignores — it needs no connection settings).

Modules§

factory
Factories that build the in-memory backends for the aa-storage driver registry.

Structs§

MemoryAuditSink
An AuditSink that appends entries to an in-memory, unbounded buffer.
MemoryCredentialStore
A DashMap-backed CredentialStore mapping key strings to opaque secret bytes. Cloning shares the same underlying map.
MemoryLifecycleStore
A DashMap-backed LifecycleStore mapping a registered agent to the instant of its last heartbeat. Cloning shares the same underlying map.
MemoryPolicyStore
A DashMap-backed PolicyStore for tests and local development.
MemoryRateLimitCounter
A DashMap-backed RateLimitCounter.
MemorySessionStore
A DashMap-backed SessionStore keyed by session id. Cloning shares the same underlying map.

Constants§

DRIVER_NAME
The name the memory driver registers all six storage backends under.

Functions§

register
Register the in-memory factories for all six storage kinds into reg under DRIVER_NAME.