Remove error_message, add log_file in terminate request
This commit is contained in:
parent
f8a03bc18a
commit
2f5a28beb9
2 changed files with 5 additions and 7 deletions
|
@ -25,12 +25,12 @@ enum AuthorizationStatus {
|
|||
|
||||
message AuthorizeResponse {
|
||||
AuthorizationStatus status = 1;
|
||||
string error_message = 2;
|
||||
string session_uuid = 3;
|
||||
string session_uuid = 2;
|
||||
}
|
||||
|
||||
message TerminateRequest {
|
||||
string session_uuid = 1;
|
||||
string log_file = 2;
|
||||
}
|
||||
|
||||
enum TerminateStatus {
|
||||
|
@ -40,5 +40,4 @@ enum TerminateStatus {
|
|||
|
||||
message TerminateResponse {
|
||||
TerminateStatus status = 1;
|
||||
string error_message = 2;
|
||||
}
|
|
@ -6,7 +6,8 @@ use tonic::{Request, Response, Status};
|
|||
|
||||
use libcommand::internal::{
|
||||
unix_server::Unix,
|
||||
AuthorizeRequest, AuthorizeResponse, AuthorizationStatus, TerminateRequest, TerminateResponse, TerminateStatus
|
||||
AuthorizeRequest, AuthorizeResponse, AuthorizationStatus,
|
||||
TerminateRequest, TerminateResponse, TerminateStatus
|
||||
};
|
||||
|
||||
#[derive(Default)]
|
||||
|
@ -26,7 +27,6 @@ impl Unix for DaemonServer {
|
|||
|
||||
let reply = AuthorizeResponse {
|
||||
status: AuthorizationStatus::Authorized.into(),
|
||||
error_message: "".into(),
|
||||
session_uuid: "".into()
|
||||
};
|
||||
Ok(Response::new(reply))
|
||||
|
@ -43,8 +43,7 @@ impl Unix for DaemonServer {
|
|||
}
|
||||
|
||||
let reply = TerminateResponse {
|
||||
status: TerminateStatus::Ok.into(),
|
||||
error_message: "".into(),
|
||||
status: TerminateStatus::Ok.into()
|
||||
};
|
||||
Ok(Response::new(reply))
|
||||
}
|
||||
|
|
Reference in a new issue