MCPcopy Create free account
hub / github.com/cosdata/cosdata / AppEnv

Class AppEnv

src/models/types.rs:1527–1535  ·  view source on GitHub ↗

Define the AppEnv struct

Source from the content-addressed store, hash-verified

1525
1526// Define the AppEnv struct
1527pub struct AppEnv {
1528 pub collections_map: CollectionsMap,
1529 pub users_map: UsersMap,
1530 pub persist: Arc<Environment>,
1531 // Single hash, must not be persisted to disk, only the double hash must be
1532 // written to disk
1533 pub admin_key: SingleSHA256Hash,
1534 pub active_sessions: Arc<DashMap<String, SessionDetails>>,
1535}
1536
1537fn get_admin_key(env: Arc<Environment>, args: CosdataArgs) -> lmdb::Result<SingleSHA256Hash> {
1538 // Create meta database if it doesn't exist

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected