Skip to content

Commit d969ffa

Browse files
committed
add: notify method
1 parent 9fb25cc commit d969ffa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

proto/bottles.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ package bottles;
44

55
service Bottles {
66
rpc Health (HealthRequest) returns (HealthResponse);
7+
rpc Notify (NotifyRequest) returns (NotifyResponse);
78
}
89

910
message HealthRequest {}
1011

1112
message HealthResponse {
1213
bool ok = 1;
1314
}
15+
16+
message NotifyRequest {
17+
string message = 1;
18+
}
19+
20+
message NotifyResponse {
21+
bool success = 1;
22+
}

0 commit comments

Comments
 (0)