Refactor proto package + bin names
This commit is contained in:
parent
e46fe9db87
commit
2b028c694f
9 changed files with 15 additions and 15 deletions
|
@ -9,7 +9,7 @@ use tokio::net::UnixListener;
|
|||
use tokio_stream::wrappers::UnixListenerStream;
|
||||
|
||||
use tonic::transport::Server;
|
||||
use libcommand::internal::unix_server::UnixServer;
|
||||
use libcommand::interpreter::unix_server::UnixServer;
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tokio::main]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use tonic::{Request, Response, Status};
|
||||
|
||||
use libcommand::internal::{
|
||||
use libcommand::interpreter::{
|
||||
unix_server::Unix,
|
||||
AuthorizeRequest, AuthorizeResponse, AuthorizationStatus,
|
||||
TerminateRequest, TerminateResponse, TerminateStatus
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use libcommand::internal::unix_client::UnixClient;
|
||||
use libcommand::interpreter::unix_client::UnixClient;
|
||||
|
||||
#[cfg(unix)]
|
||||
use tokio::net::UnixStream;
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
pub mod client;
|
||||
|
||||
use libcommand::internal::{AuthorizationStatus, AuthorizeRequest, AuthorizeResponse};
|
||||
use libcommand::interpreter::{AuthorizationStatus, AuthorizeRequest, AuthorizeResponse};
|
||||
use tonic::Response;
|
||||
|
||||
#[cfg(unix)]
|
|
@ -3,8 +3,8 @@ use serde::{Serialize, Deserialize};
|
|||
|
||||
pub const SOCK_FILE : &'static str = "/var/run/command_gateway.sock";
|
||||
|
||||
pub mod internal {
|
||||
tonic::include_proto!("internal");
|
||||
pub mod interpreter {
|
||||
tonic::include_proto!("interpreter");
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
Reference in a new issue