chatty-catties/nebkor-maelstrom/src/kv.rs
Joe Ardent 06a1b58e4e Make handle take Message by value.
This makes closures easier to deal with in RPC calls.
2024-05-29 13:55:29 -07:00

29 lines
512 B
Rust

/*
use serde_json::Value;
use crate::Body;
#[derive(Debug, Default, Clone)]
pub struct Kv {
pub service: String,
}
impl Kv {
pub fn new(service: &str) -> Self {
Kv {
service: service.to_string(),
}
}
pub fn read(&self, key: &str) -> Body {
todo!()
}
pub fn write(&self, key: &str, val: Value, create: bool) -> Body {
todo!()
}
pub fn cas(&self, key: &str, from: Value, to: Value, create: bool) -> Body {
todo!()
}
}
*/