command.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/v1/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 AddOutboundRequest {
  30. core.OutboundHandlerConfig outbound = 1;
  31. }
  32. message AddOutboundResponse {}
  33. message RemoveOutboundRequest {
  34. string tag = 1;
  35. }
  36. message RemoveOutboundResponse {}
  37. message AlterOutboundRequest {
  38. string tag = 1;
  39. xray.common.serial.TypedMessage operation = 2;
  40. }
  41. message AlterOutboundResponse {}
  42. service HandlerService {
  43. rpc AddInbound(AddInboundRequest) returns (AddInboundResponse) {}
  44. rpc RemoveInbound(RemoveInboundRequest) returns (RemoveInboundResponse) {}
  45. rpc AlterInbound(AlterInboundRequest) returns (AlterInboundResponse) {}
  46. rpc AddOutbound(AddOutboundRequest) returns (AddOutboundResponse) {}
  47. rpc RemoveOutbound(RemoveOutboundRequest) returns (RemoveOutboundResponse) {}
  48. rpc AlterOutbound(AlterOutboundRequest) returns (AlterOutboundResponse) {}
  49. }
  50. message Config {}