Crate minerva_data
source · [−]Expand description
This is a library for working with anything related to actual data on the Minerva System. This includes:
- Data Transfer Objects (DTOs) for any defined entities;
- Conversions from gRPC messages to actual entity DTOs;
- Loading and reading project configuration such as multi-tenant config;
- Logging to screen (non-audit logging).
Modules
This module contains functions and structures related to handling the
PostgreSQL database, specially regarding connections and database creation.
This module wraps functions related to password encryption.
This module wraps functions related to file reading.
This module wraps functions related to logging stuff to screen.
These are non-audit logs, which should be related to normal operation of the
system, mainly captured by whatever deploy method is used.
This module contains functions and structures related to handling the
MongoDB database, specially regarding connections, database and collection
creation and management.
This module contains Data Transfer Objects for the user sessions on the
system, representing a user’s login session for a given tenant. These DTO’s
mostly relate to the
session
collecton on MongoDB database.This module contains Data Transfer Objects for the
syslog
table, which
represents the audit logs of the service.This module wraps functions and structures for manipulating multi-tenancy
configuration.
This module contains Data Transfer Objects for the
user
table, which
represents the registered users for this tenancy.