OpenAgentID documentation
Source referencesRust module referenceaegis-store-pg

aegis-store-pg · nonces

Declared module signatures, types, configuration, and source documentation.

Source: aegis/aegis-store-pg/src/nonces.rs. SHA-256: a099b856aa257643b6db7d2b951e16b6365fda223b694d29aa0d21d3727710f7.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

nonces::PgNonceStore

PostgreSQL-backed nonce store.

Records nonces in the aegis_nonces table. The primary key constraint on nonce ensures that duplicate insertions are detected, which is used to identify replay attempts.

pub struct PgNonceStore {

}

Source line: 17.

nonces::PgNonceStore::new

Create a new PostgreSQL nonce store with the given connection pool and TTL for cleanup.

The ttl_secs parameter controls how old a nonce must be before cleanup() will remove it. A value of 0 means cleanup removes all nonces.

pub fn new(pool: PgPool, ttl_secs: i64) -> Self;

Source line: 31.

On this page