mirror of
https://github.com/hexedtech/codemp.git
synced 2025-03-31 16:41:33 +02:00
basically removed the need to manually compose messages and added methods to handle it.
26 lines
469 B
Rust
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 {
|
|
// }
|