forwarder.proto 1021 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. syntax = "proto3";
  2. package pb;
  3. option go_package = "yunion.io/x/onecloud/pkg/hostman/guestman/forwarder/api";
  4. service Forwarder {
  5. rpc Open(OpenRequest) returns (OpenResponse);
  6. rpc Close(CloseRequest) returns (CloseResponse);
  7. rpc ListByRemote(ListByRemoteRequest) returns (ListByRemoteResponse);
  8. }
  9. message OpenRequest {
  10. string netId = 1;
  11. string proto = 2;
  12. string bindAddr = 3;
  13. uint32 bindPort = 4;
  14. string remoteAddr = 5;
  15. uint32 remotePort = 6;
  16. }
  17. message OpenResponse {
  18. string netId = 1;
  19. string proto = 2;
  20. string bindAddr = 3;
  21. uint32 bindPort = 4;
  22. string remoteAddr = 5;
  23. uint32 remotePort = 6;
  24. }
  25. message CloseRequest {
  26. string netId = 1;
  27. string proto = 2;
  28. string bindAddr = 3;
  29. uint32 bindPort = 4;
  30. }
  31. message CloseResponse {
  32. string netId = 1;
  33. string proto = 2;
  34. string bindAddr = 3;
  35. uint32 bindPort = 4;
  36. }
  37. message ListByRemoteRequest {
  38. string netId = 1;
  39. string proto = 2;
  40. string remoteAddr = 3;
  41. uint32 remotePort = 4;
  42. }
  43. message ListByRemoteResponse {
  44. repeated OpenResponse Forwards = 1;
  45. }