Skip to content

Commit

Permalink
renamed server module to protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Uewotm90 committed Dec 6, 2023
1 parent 2f21830 commit 2f9e6aa
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/api/context_collection.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::api::hashing_context::HashingContextTrait;
use crate::api::server::server::ecdar_backend_server::EcdarBackend;
use crate::api::server::protobuf::ecdar_backend_server::EcdarBackend;
use crate::database::access_context::AccessContextTrait;
use crate::database::in_use_context::InUseContextTrait;
use crate::database::model_context::ModelContextTrait;
Expand Down
4 changes: 2 additions & 2 deletions src/api/ecdar_api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::server::server::{
use super::server::protobuf::{
ecdar_api_auth_server::EcdarApiAuth,
ecdar_api_server::EcdarApi,
ecdar_backend_server::EcdarBackend,
Expand All @@ -13,7 +13,7 @@ use super::server::server::{
use crate::api::context_collection::ContextCollection;
use crate::api::{
auth::{RequestExt, Token, TokenType},
server::server::Model,
server::protobuf::Model,
};
use crate::database::{session_context::SessionContextTrait, user_context::UserContextTrait};
use crate::entities::{access, in_use, model, query, session, user};
Expand Down
6 changes: 3 additions & 3 deletions src/api/reveaal_context.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::api::server::server::ecdar_backend_client::EcdarBackendClient;
use crate::api::server::server::ecdar_backend_server::EcdarBackend;
use crate::api::server::server::{
use crate::api::server::protobuf::ecdar_backend_client::EcdarBackendClient;
use crate::api::server::protobuf::ecdar_backend_server::EcdarBackend;
use crate::api::server::protobuf::{
QueryRequest, QueryResponse, SimulationStartRequest, SimulationStepRequest,
SimulationStepResponse, UserTokenResponse,
};
Expand Down
8 changes: 4 additions & 4 deletions src/api/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use tonic::transport::Server;
use crate::api::auth;
use crate::api::context_collection::ContextCollection;
use crate::api::ecdar_api::ConcreteEcdarApi;
use crate::api::server::server::ecdar_api_auth_server::EcdarApiAuthServer;
use crate::api::server::server::ecdar_api_server::EcdarApiServer;
use crate::api::server::server::ecdar_backend_server::EcdarBackendServer;
use crate::api::server::protobuf::ecdar_api_auth_server::EcdarApiAuthServer;
use crate::api::server::protobuf::ecdar_api_server::EcdarApiServer;
use crate::api::server::protobuf::ecdar_backend_server::EcdarBackendServer;

pub mod server {
pub mod protobuf {
tonic::include_proto!("ecdar_proto_buf");
}

Expand Down
2 changes: 1 addition & 1 deletion src/database/model_context.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::database::database_context::DatabaseContextTrait;
use crate::entities::{access, model, query};

use crate::api::server::server::ModelInfo;
use crate::api::server::protobuf::ModelInfo;
use crate::EntityContextTrait;
use async_trait::async_trait;
use sea_orm::{
Expand Down
4 changes: 2 additions & 2 deletions src/tests/api/access_logic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::api::server::server::ecdar_api_server::EcdarApi;
use crate::api::server::server::{CreateAccessRequest, DeleteAccessRequest, UpdateAccessRequest};
use crate::api::server::protobuf::ecdar_api_server::EcdarApi;
use crate::api::server::protobuf::{CreateAccessRequest, DeleteAccessRequest, UpdateAccessRequest};
use crate::entities::access;
use crate::tests::api::helpers::{get_mock_concrete_ecdar_api, get_mock_services};
use mockall::predicate;
Expand Down
6 changes: 3 additions & 3 deletions src/tests/api/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use crate::api::auth::TokenType;
use crate::api::context_collection::ContextCollection;
use crate::api::ecdar_api::ConcreteEcdarApi;
use crate::api::hashing_context::HashingContextTrait;
use crate::api::server::server::ecdar_backend_server::EcdarBackend;
use crate::api::server::server::ModelInfo;
use crate::api::server::server::{
use crate::api::server::protobuf::ecdar_backend_server::EcdarBackend;
use crate::api::server::protobuf::ModelInfo;
use crate::api::server::protobuf::{
QueryRequest, QueryResponse, SimulationStartRequest, SimulationStepRequest,
SimulationStepResponse, UserTokenResponse,
};
Expand Down
2 changes: 1 addition & 1 deletion src/tests/api/model_logic.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{
api::{
auth::TokenType,
server::server::{
server::protobuf::{
component::Rep, ecdar_api_server::EcdarApi, Component, ComponentsInfo,
CreateModelRequest, DeleteModelRequest, GetModelRequest, ModelInfo, UpdateModelRequest,
},
Expand Down
4 changes: 2 additions & 2 deletions src/tests/api/query_logic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::api::server::server::ecdar_api_server::EcdarApi;
use crate::api::server::server::{CreateQueryRequest, DeleteQueryRequest, UpdateQueryRequest};
use crate::api::server::protobuf::ecdar_api_server::EcdarApi;
use crate::api::server::protobuf::{CreateQueryRequest, DeleteQueryRequest, UpdateQueryRequest};
use crate::entities::query;
use crate::tests::api::helpers::{get_mock_concrete_ecdar_api, get_mock_services};
use mockall::predicate;
Expand Down
2 changes: 1 addition & 1 deletion src/tests/api/session_logic.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::api::server::server::GetAuthTokenRequest;
use crate::api::server::protobuf::GetAuthTokenRequest;
use crate::api::{auth::TokenType, ecdar_api::handle_session};
use crate::entities::session;
use crate::tests::api::helpers::get_mock_services;
Expand Down
6 changes: 3 additions & 3 deletions src/tests/api/user_logic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth;
use crate::api::server::server::ecdar_api_server::EcdarApi;
use crate::api::server::server::{CreateUserRequest, UpdateUserRequest};
use crate::api::server::protobuf::ecdar_api_auth_server::EcdarApiAuth;
use crate::api::server::protobuf::ecdar_api_server::EcdarApi;
use crate::api::server::protobuf::{CreateUserRequest, UpdateUserRequest};
use crate::entities::user;
use crate::tests::api::helpers::{get_mock_concrete_ecdar_api, get_mock_services};
use mockall::predicate;
Expand Down

0 comments on commit 2f9e6aa

Please sign in to comment.