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