feat: move core to tui and begin grpc work
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
33
crates/hyperlog-server/src/querier.rs
Normal file
33
crates/hyperlog-server/src/querier.rs
Normal file
@@ -0,0 +1,33 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user