1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-19 02:46:33 -05:00
v2fly/app/proxyman/command/command.proto

74 lines
1.6 KiB
Protocol Buffer
Raw Normal View History

2018-02-05 17:38:24 -05:00
syntax = "proto3";
package v2ray.core.app.proxyman.command;
option csharp_namespace = "V2Ray.Core.App.Proxyman.Command";
2021-02-16 15:31:50 -05:00
option go_package = "github.com/v2fly/v2ray-core/v4/app/proxyman/command";
2018-02-05 17:38:24 -05:00
option java_package = "com.v2ray.core.app.proxyman.command";
option java_multiple_files = true;
import "common/protocol/user.proto";
import "google/protobuf/any.proto";
import "config.proto";
2018-02-05 17:38:24 -05:00
message AddUserOperation {
v2ray.core.common.protocol.User user = 1;
}
message RemoveUserOperation {
string email = 1;
}
message AddInboundRequest {
core.InboundHandlerConfig inbound = 1;
}
message AddInboundResponse {}
2018-02-05 17:38:24 -05:00
message RemoveInboundRequest {
string tag = 1;
}
message RemoveInboundResponse {}
message AlterInboundRequest {
string tag = 1;
2021-06-19 09:36:54 -04:00
google.protobuf.Any operation = 2;
2018-02-05 17:38:24 -05:00
}
message AlterInboundResponse {}
2018-02-05 17:38:24 -05:00
message AddOutboundRequest {
core.OutboundHandlerConfig outbound = 1;
}
message AddOutboundResponse {}
2018-02-05 17:38:24 -05:00
message RemoveOutboundRequest {
string tag = 1;
}
message RemoveOutboundResponse {}
2018-02-05 17:38:24 -05:00
message AlterOutboundRequest {
string tag = 1;
2021-06-19 09:36:54 -04:00
google.protobuf.Any operation = 2;
2018-02-05 17:38:24 -05:00
}
message AlterOutboundResponse {}
2018-02-05 17:38:24 -05:00
service HandlerService {
rpc AddInbound(AddInboundRequest) returns (AddInboundResponse) {}
rpc RemoveInbound(RemoveInboundRequest) returns (RemoveInboundResponse) {}
rpc AlterInbound(AlterInboundRequest) returns (AlterInboundResponse) {}
rpc AddOutbound(AddOutboundRequest) returns (AddOutboundResponse) {}
rpc RemoveOutbound(RemoveOutboundRequest) returns (RemoveOutboundResponse) {}
rpc AlterOutbound(AlterOutboundRequest) returns (AlterOutboundResponse) {}
}
message Config {}