mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 14:14:52 +00:00
add common Metadata message to be injected in reply messages by gRPC proxy
This commit is contained in:
1 parent
d36429e6e5
commit
c2b466b046
6 files changed
+206
-41
No files matched your search
@@ -4,6 +4,20 @@ package api;
|
||||
|
||||
option go_package = "github.com/psviderski/uncloud/internal/machine/api/pb";
|
||||
|
||||
// Vendored at internal/machine/api/vendor/google/rpc/status.proto.
|
||||
import "google/rpc/status.proto";
|
||||
|
||||
// Common metadata message nested in all reply message types, injected by the gRPC proxy to provide information
|
||||
// about the machine that responded to the request.
|
||||
message Metadata {
|
||||
// Address of the machine the response came from.
|
||||
string machine = 1;
|
||||
// error is set if the request to upstream failed. The rest of the response is undefined.
|
||||
string error = 2;
|
||||
// error as a gRPC Status message.
|
||||
google.rpc.Status status = 3;
|
||||
}
|
||||
|
||||
message IP {
|
||||
bytes ip = 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user