File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ option go_package = "go-eosgrpc";
3232
3333service 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+
222242message FindRequest {
223243 TYPE type = 1 ;
224244 MDId id = 2 ;
You can’t perform that action at this time.
0 commit comments