talos_cohort_replicator 0.3.17

Talos Replicator for serial installation of statemaps and updating snapshot of cohort db.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use async_trait::async_trait;

use crate::StatemapItem;

#[async_trait]
pub trait ReplicatorInstaller {
    async fn install(&self, sm: Vec<StatemapItem>, version: u64) -> Result<(), String>;
}
#[async_trait]
pub trait ReplicatorSnapshotProvider {
    async fn update_snapshot(&self, version: u64) -> Result<(), String>;
    async fn get_snapshot(&self) -> Result<u64, String>;
}