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;
|
|
|
|
|
2020-08-24 08:10:26 -04:00
|
|
|
import "common/protocol/user.proto";
|
2021-06-23 09:34:03 -04:00
|
|
|
import "google/protobuf/any.proto";
|
2020-08-24 08:10:26 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2020-10-04 20:36:40 -04:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-10-04 20:36:40 -04:00
|
|
|
message AlterInboundResponse {}
|
2018-02-05 17:38:24 -05:00
|
|
|
|
|
|
|
message AddOutboundRequest {
|
|
|
|
core.OutboundHandlerConfig outbound = 1;
|
|
|
|
}
|
|
|
|
|
2020-10-04 20:36:40 -04:00
|
|
|
message AddOutboundResponse {}
|
2018-02-05 17:38:24 -05:00
|
|
|
|
|
|
|
message RemoveOutboundRequest {
|
|
|
|
string tag = 1;
|
|
|
|
}
|
|
|
|
|
2020-10-04 20:36:40 -04:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-10-04 20:36:40 -04: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) {}
|
|
|
|
}
|
|
|
|
|
2020-08-24 08:10:26 -04:00
|
|
|
message Config {}
|