hyperlog/crates/hyperlog-server/src/querier.rs
kjuulh 4a0fcd1bbb
All checks were successful
continuous-integration/drone/push Build is passing
feat: move core to tui and begin grpc work
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-05-11 23:23:00 +02:00

34 lines
566 B
Rust

use hyperlog_core::log::GraphItem;
use crate::state::SharedState;
pub struct Querier {}
impl Querier {
pub fn new() -> Self {
Self {}
}
pub fn get_available_roots(&self) -> Option<Vec<String>> {
todo!()
}
pub fn get(
&self,
root: &str,
path: impl IntoIterator<Item = impl Into<String>>,
) -> Option<GraphItem> {
todo!()
}
}
pub trait QuerierExt {
fn querier(&self) -> Querier;
}
impl QuerierExt for SharedState {
fn querier(&self) -> Querier {
Querier::new()
}
}