Live sync KV stores over Iroh
This commit is contained in:
parent
68153be5d5
commit
f85039367c
9 changed files with 473 additions and 13 deletions
|
|
@ -16,6 +16,13 @@ pub struct KvEntry {
|
|||
pub value: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct KvSyncEntry {
|
||||
pub key: String,
|
||||
pub value: String,
|
||||
pub updated_at_ms: i64,
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum KvError {
|
||||
#[error("invalid kv store name: {0}")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue