codemp/src/server/service/session.rs
alemidev 851781b041 feat: made statemanager more friendly in its usage
basically removed the need to manually compose messages and added
methods to handle it.
2022-08-29 02:48:09 +02:00

26 lines
469 B
Rust

pub mod proto {
tonic::include_proto!("session");
}
use std::sync::Arc;
use tracing::debug;
use tonic::{Request, Response, Status};
use proto::session_server::Session;
use proto::{SessionRequest, SessionResponse};
use crate::actor::{
state::StateManager,
workspace::Workspace as WorkspaceInstance, // TODO fuck x2!
};
#[derive(Debug)]
pub struct SessionService {
state: Arc<StateManager>,
}
// #[tonic::async_trait]
// impl Session for SessionService {
// }