Skip to content

Commit

Permalink
Create ntwk.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 7, 2024
1 parent 794cc65 commit 5aab044
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions proto/ntwk.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
syntax = "proto3";

package ntwk;

service NtwkNode {
rpc SendMessage(SendMessageRequest) returns (SendMessageResponse) {}
rpc GetMessage(GetMessageRequest) returns (GetMessageResponse) {}
}

message SendMessageRequest {
Message message = 1;
}

message SendMessageResponse {
string result = 1;
}

message GetMessageRequest {
string message_id = 1;
}

message GetMessageResponse {
Message message = 1;
}

message Message {
string id = 1;
string data = 2;
}

0 comments on commit 5aab044

Please sign in to comment.