command.proto 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. syntax = "proto3";
  2. package v2ray.core.app.proxyman.command;
  3. option csharp_namespace = "V2Ray.Core.App.Proxyman.Command";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/app/proxyman/command";
  5. option java_package = "com.v2ray.core.app.proxyman.command";
  6. option java_multiple_files = true;
  7. import "common/protocol/user.proto";
  8. import "google/protobuf/any.proto";
  9. import "common/protoext/extensions.proto";
  10. import "config.proto";
  11. message AddUserOperation {
  12. v2ray.core.common.protocol.User user = 1;
  13. }
  14. message RemoveUserOperation {
  15. string email = 1;
  16. }
  17. message AddInboundRequest {
  18. core.InboundHandlerConfig inbound = 1;
  19. }
  20. message AddInboundResponse {}
  21. message RemoveInboundRequest {
  22. string tag = 1;
  23. }
  24. message RemoveInboundResponse {}
  25. message AlterInboundRequest {
  26. string tag = 1;
  27. google.protobuf.Any operation = 2;
  28. }
  29. message AlterInboundResponse {}
  30. message AddOutboundRequest {
  31. core.OutboundHandlerConfig outbound = 1;
  32. }
  33. message AddOutboundResponse {}
  34. message RemoveOutboundRequest {
  35. string tag = 1;
  36. }
  37. message RemoveOutboundResponse {}
  38. message AlterOutboundRequest {
  39. string tag = 1;
  40. google.protobuf.Any operation = 2;
  41. }
  42. message AlterOutboundResponse {}
  43. service HandlerService {
  44. rpc AddInbound(AddInboundRequest) returns (AddInboundResponse) {}
  45. rpc RemoveInbound(RemoveInboundRequest) returns (RemoveInboundResponse) {}
  46. rpc AlterInbound(AlterInboundRequest) returns (AlterInboundResponse) {}
  47. rpc AddOutbound(AddOutboundRequest) returns (AddOutboundResponse) {}
  48. rpc RemoveOutbound(RemoveOutboundRequest) returns (RemoveOutboundResponse) {}
  49. rpc AlterOutbound(AlterOutboundRequest) returns (AlterOutboundResponse) {}
  50. }
  51. message Config {
  52. option (v2ray.core.common.protoext.message_opt).type = "grpcservice";
  53. option (v2ray.core.common.protoext.message_opt).short_name = "proxyman";
  54. }