Mirror Service is responsible for providing the Register
interface for the Vald Mirror Gateway.
service Mirror {
rpc Register(payload.v1.Mirror.Targets) returns (payload.v1.Mirror.Targets) {}
}
Register RPC is the method to register other Vald Mirror Gateway targets.
-
the scheme of
payload.v1.Mirror.Targets
message Mirror.Targets { repeated Mirror.Target targets = 1; } message Mirror.Target { string host = 1; uint32 port = 2; }
-
Mirror.Targets
field type label description targets Mirror.Target repeated The multiple target information. -
Mirror.Target
field type label description host string The target hostname. port uint32 The target port.
-
-
the scheme of
payload.v1.Mirror.Targets
message Mirror.Targets { repeated Mirror.Target targets = 1; } message Mirror.Target { string host = 1; uint32 port = 2; }
-
Mirror.Targets
field type label description targets Mirror.Target repeated The multiple target information. -
Mirror.Target
field type label description host string The target hostname. port uint32 The target port.
-
code | description |
---|---|
0 | OK |
1 | CANCELLED |
3 | INVALID_ARGUMENT |
4 | DEADLINE_EXCEEDED |
13 | INTERNAL |
Please refer to Response Status Code for more details.