Skip to content

Commit 2875da3

Browse files
committed
Add 'notification' protobuf
1 parent 740878d commit 2875da3

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Rpc.proto

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ option go_package = "go-eosgrpc";
3232

3333
service Eos {
3434
// Replies to a ping
35-
rpc Ping (PingRequest) returns (PingReply) {}
35+
rpc Ping (PingRequest) returns (PingReply) {}
36+
37+
// Replise to a notification
38+
rpc Notify (NotificationRequest) returns (NotificationResponse) {}
3639

3740
// ---------------------------------------------------------------------
3841
// NAMESPACE
@@ -41,6 +44,8 @@ service Eos {
4144
// Replies to MD requests with a stream
4245
rpc MD (MDRequest) returns (stream MDResponse) {}
4346

47+
rpc Notification (NotificationRequest) returns (stream NotificationResponse) {}
48+
4449
// Replies to Find requests with a stream
4550
rpc Find (FindRequest) returns (stream MDResponse) {}
4651

@@ -64,6 +69,14 @@ message PingReply {
6469
bytes message = 1;
6570
}
6671

72+
message NotificationRequest {
73+
bytes message = 1;
74+
}
75+
76+
message NotificationResponse {
77+
bool success = 1;
78+
}
79+
6780
// ---------------------------------------------------------------------
6881
// NAMESPACE
6982
// ---------------------------------------------------------------------
@@ -219,6 +232,13 @@ message MDResponse {
219232
ContainerMdProto cmd = 3;
220233
}
221234

235+
message MDNotification {
236+
TYPE type = 1;
237+
FileMdProto fmd = 2;
238+
ContainerMdProto cmd = 3;
239+
RoleId role = 4;
240+
}
241+
222242
message FindRequest {
223243
TYPE type = 1;
224244
MDId id = 2;

0 commit comments

Comments
 (0)