Skip to main content
Glama
config.rs1.19 kB
use serde::{ Deserialize, Serialize, }; use si_data_pg::PgPoolConfig; /// The name of the audit database. pub const DBNAME: &str = "si_audit"; const APPLICATION_NAME: &str = "si-audit"; const DEFAULT_INSERT_CONCURRENCY_LIMIT: usize = 64; /// The configuration used for communicating with and setting up the audit database. #[derive(Debug, Clone, Deserialize, Serialize)] pub struct AuditDatabaseConfig { /// The configuration for the PostgreSQL pool. /// /// _Note:_ this is called "pg" for ease of use with layered load configuration files. pub pg: PgPoolConfig, /// The concurrency limit used when inserting events into the database store. pub insert_concurrency_limit: usize, } impl Default for AuditDatabaseConfig { fn default() -> Self { Self { pg: default_pg_pool_config(), insert_concurrency_limit: DEFAULT_INSERT_CONCURRENCY_LIMIT, } } } /// The default [`PgPoolConfig`] used in the [`AuditDatabaseConfig`]. pub fn default_pg_pool_config() -> PgPoolConfig { PgPoolConfig { dbname: DBNAME.into(), application_name: APPLICATION_NAME.into(), ..Default::default() } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server