Vald Mirror Gateway APIs

Overview

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

Register RPC is the method to register other Vald Mirror Gateway targets.

Input

  • the scheme of payload.v1.Mirror.Targets.

    message Mirror {
      message Target {
        string host = 1;
        uint32 port = 2;
      }
    
      message Targets {
        repeated Target targets = 1;
      }
    }
    
    • Mirror.Targets

      fieldtypelabelrequireddesc.
      targetsMirror.Targetrepeated(Array[Mirror.Target])*The multiple target information.
    • Mirror.Target

      fieldtypelabelrequireddesc.
      hoststring*The target hostname.
      portuint32*The target port.

Output

  • the scheme of payload.v1.Mirror.Targets.

    message Mirror {
      message Target {
        string host = 1;
        uint32 port = 2;
      }
    
      message Targets {
        repeated Target targets = 1;
      }
    }
    
    • Mirror.Targets

      fieldtypelabelrequireddesc.
      targetsMirror.Targetrepeated(Array[Mirror.Target])The multiple target information.
    • Mirror.Target

      fieldtypelabelrequireddesc.
      hoststring*The target hostname.
      portuint32*The target port.

Status Code

codedesc.
0OK
1CANCELLED
3INVALID_ARGUMENT
4DEADLINE_EXCEEDED
13INTERNAL

See also