Rainbond/appruntimesync/pb/app_runtime_sync.proto
2018-07-04 10:48:02 +08:00

31 lines
680 B
Protocol Buffer

syntax = "proto3";
package pb;
service AppRuntimeSync {
rpc GetAppStatus (StatusRequest) returns (StatusMessage) {}
rpc GetAppDisk (StatusRequest) returns (DiskMessage) {}
rpc SetAppStatus (StatusMessage) returns (ErrorMessage) {}
rpc CheckAppStatus (StatusRequest) returns (ErrorMessage) {}
rpc IgnoreDeleteEvent (Ignore) returns (ErrorMessage) {}
rpc RmIgnoreDeleteEvent (Ignore) returns (ErrorMessage) {}
}
message Ignore {
string name = 1;
}
message StatusRequest {
string service_ids = 1;
}
message StatusMessage {
map<string, string> status = 1;
}
message DiskMessage {
map<string, double> disks = 1;
}
message ErrorMessage {
string message = 1;
}