v-authorization-impl
LMDB implementation for Veda authorization system.
Description
This crate provides LMDB-based storage backend for the Veda authorization framework. It implements the AuthorizationContext trait from v_authorization crate using Lightning Memory-Mapped Database (LMDB).
Features
- High-performance authorization data storage using LMDB
- Optional caching layer for improved performance
- Statistics collection support
- Thread-safe read operations
Usage
use LmdbAzContext;
// Create with default settings
let mut az_ctx = default;
// Create with custom max read counter
let mut az_ctx = new;
// Create with full configuration
let mut az_ctx = new_with_config;
Configuration
The context can be configured with:
max_read_counter: Number of authorization operations before database reconnectionstat_collector_url: Optional URL for statistics collectionstat_mode: Statistics collection mode ("full", "minimal", or "none")use_cache: Enable/disable authorization cache
Dependencies
lmdb-rs-m: LMDB Rust bindingsv_authorization: Core authorization frameworknng: Nanomsg-next-generation for statistics reporting