//! # 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};