command.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. syntax = "proto3";
  2. package v2ray.core.app.proxyman.command;
  3. option csharp_namespace = "V2Ray.Core.App.Proxyman.Command";
  4. option go_package = "command";
  5. option java_package = "com.v2ray.core.app.proxyman.command";
  6. option java_multiple_files = true;
  7. import "v2ray.com/core/common/protocol/user.proto";
  8. import "v2ray.com/core/common/serial/typed_message.proto";
  9. import "v2ray.com/core/config.proto";
  10. message AddUserOperation {
  11. v2ray.core.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. }
  21. message RemoveInboundRequest {
  22. string tag = 1;
  23. }
  24. message RemoveInboundResponse {}
  25. message AlterInboundRequest {
  26. string tag = 1;
  27. v2ray.core.common.serial.TypedMessage operation = 2;
  28. }
  29. message AlterInboundResponse {
  30. }
  31. message AddOutboundRequest {
  32. core.OutboundHandlerConfig outbound = 1;
  33. }
  34. message AddOutboundResponse {
  35. }
  36. message RemoveOutboundRequest {
  37. string tag = 1;
  38. }
  39. message RemoveOutboundResponse {
  40. }
  41. message AlterOutboundRequest {
  42. string tag = 1;
  43. v2ray.core.common.serial.TypedMessage operation = 2;
  44. }
  45. message AlterOutboundResponse {
  46. }
  47. service HandlerService {
  48. rpc AddInbound(AddInboundRequest) returns (AddInboundResponse) {}
  49. rpc RemoveInbound(RemoveInboundRequest) returns (RemoveInboundResponse) {}
  50. rpc AlterInbound(AlterInboundRequest) returns (AlterInboundResponse) {}
  51. rpc AddOutbound(AddOutboundRequest) returns (AddOutboundResponse) {}
  52. rpc RemoveOutbound(RemoveOutboundRequest) returns (RemoveOutboundResponse) {}
  53. rpc AlterOutbound(AlterOutboundRequest) returns (AlterOutboundResponse) {}
  54. }
  55. message Config {}