command.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. syntax = "proto3";
  2. package xray.app.proxyman.command;
  3. option csharp_namespace = "Xray.App.Proxyman.Command";
  4. option go_package = "github.com/xtls/xray-core/app/proxyman/command";
  5. option java_package = "com.xray.app.proxyman.command";
  6. option java_multiple_files = true;
  7. import "common/protocol/user.proto";
  8. import "common/serial/typed_message.proto";
  9. import "core/config.proto";
  10. message AddUserOperation {
  11. xray.common.protocol.User user = 1;
  12. }
  13. message RemoveUserOperation {
  14. string email = 1;
  15. }
  16. message AddInboundRequest {
  17. core.InboundHandlerConfig inbound = 1;
  18. }
  19. message AddInboundResponse {}
  20. message RemoveInboundRequest {
  21. string tag = 1;
  22. }
  23. message RemoveInboundResponse {}
  24. message AlterInboundRequest {
  25. string tag = 1;
  26. xray.common.serial.TypedMessage operation = 2;
  27. }
  28. message AlterInboundResponse {}
  29. message GetInboundUserRequest {
  30. string tag = 1;
  31. string email = 2;
  32. }
  33. message GetInboundUserResponse {
  34. repeated xray.common.protocol.User users = 1;
  35. }
  36. message GetInboundUsersCountResponse {
  37. int64 count = 1;
  38. }
  39. message AddOutboundRequest {
  40. core.OutboundHandlerConfig outbound = 1;
  41. }
  42. message AddOutboundResponse {}
  43. message RemoveOutboundRequest {
  44. string tag = 1;
  45. }
  46. message RemoveOutboundResponse {}
  47. message AlterOutboundRequest {
  48. string tag = 1;
  49. xray.common.serial.TypedMessage operation = 2;
  50. }
  51. message AlterOutboundResponse {}
  52. service HandlerService {
  53. rpc AddInbound(AddInboundRequest) returns (AddInboundResponse) {}
  54. rpc RemoveInbound(RemoveInboundRequest) returns (RemoveInboundResponse) {}
  55. rpc AlterInbound(AlterInboundRequest) returns (AlterInboundResponse) {}
  56. rpc GetInboundUsers(GetInboundUserRequest) returns (GetInboundUserResponse) {}
  57. rpc GetInboundUsersCount(GetInboundUserRequest) returns (GetInboundUsersCountResponse) {}
  58. rpc AddOutbound(AddOutboundRequest) returns (AddOutboundResponse) {}
  59. rpc RemoveOutbound(RemoveOutboundRequest) returns (RemoveOutboundResponse) {}
  60. rpc AlterOutbound(AlterOutboundRequest) returns (AlterOutboundResponse) {}
  61. }
  62. message Config {}