Broadcast event

This commit is contained in:
2024-10-21 00:05:40 +08:00
parent 799bfcc263
commit 80ad9399a3
28 changed files with 1330 additions and 48 deletions

View File

@@ -9,6 +9,7 @@ service ServiceDirectory {
rpc ListService(ListServiceRequest) returns (ListServiceResponse) {}
rpc AddService(ServiceInfo) returns (AddServiceResponse) {}
rpc RemoveService(RemoveServiceRequest) returns (RemoveServiceResponse) {}
rpc BroadcastEvent(EventInfo) returns (EventResponse) {}
}
message ServiceInfo {
@@ -41,10 +42,17 @@ message AddServiceResponse {
}
message RemoveServiceRequest {
string id =1;
string id = 1;
}
message RemoveServiceResponse {
bool is_success = 1;
}
message EventInfo {
string event = 1;
bytes data = 2;
}
message EventResponse {
}