Move Protos to Shared library
This commit is contained in:
37
Akari.Prototype.Shared/Protos/akari.proto
Normal file
37
Akari.Prototype.Shared/Protos/akari.proto
Normal file
@@ -0,0 +1,37 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option csharp_namespace = "Akari.Prototype.Shared.Protos";
|
||||
|
||||
package akari;
|
||||
|
||||
service AkariApi {
|
||||
rpc Encrypt (EncryptRequest) returns (EncryptResponse);
|
||||
|
||||
rpc Decrypt (DecryptRequest) returns (DecryptResponse);
|
||||
}
|
||||
|
||||
message EncryptRequest {
|
||||
string application = 1;
|
||||
string token = 2;
|
||||
bytes plain = 3;
|
||||
}
|
||||
|
||||
message EncryptResponse {
|
||||
oneof response {
|
||||
string error_message = 1;
|
||||
bytes encrypted = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message DecryptRequest {
|
||||
string application = 1;
|
||||
string token = 2;
|
||||
bytes encrypted = 3;
|
||||
}
|
||||
|
||||
message DecryptResponse {
|
||||
oneof response {
|
||||
string error_message = 1;
|
||||
bytes plain = 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user