1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! # Storage
//!
//! This module is used to handle all persistence. It connects to a database and to an object
//! store. Any changes made to either of these are logged in an audit log.

use anyhow::Result;
use futures::{future, prelude::*};
use handler::StorageHandler;
use openvet_common::storage::Storage;
use std::{net::SocketAddr, path::Path};
use tarpc::{
    server::{self, incoming::Incoming, Channel},
    tokio_serde::formats::Json,
};
use tracing::*;

pub mod database;
pub mod handler;
pub mod objects;
mod rust;
pub mod service;

pub use self::{database::Database, service::StorageService};