mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 02:46:33 -05:00
ef460f68f8
* Update protoc binary executable files to v3.13.0 * Write proto files in more standard way * Make go generate & vprotogen compatible with protoc-gen-gofast * Regenerate pb.go files according to new proto files * Clean go.sum by running go mod tidy * Implement mustEmbedUnimplementedServiceServer for gPRC services
81 lines
1.6 KiB
Protocol Buffer
81 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package v2ray.core.app.proxyman.command;
|
|
option csharp_namespace = "V2Ray.Core.App.Proxyman.Command";
|
|
option go_package = "v2ray.com/core/app/proxyman/command";
|
|
option java_package = "com.v2ray.core.app.proxyman.command";
|
|
option java_multiple_files = true;
|
|
|
|
import "common/protocol/user.proto";
|
|
import "common/serial/typed_message.proto";
|
|
import "config.proto";
|
|
|
|
message AddUserOperation {
|
|
v2ray.core.common.protocol.User user = 1;
|
|
}
|
|
|
|
message RemoveUserOperation {
|
|
string email = 1;
|
|
}
|
|
|
|
message AddInboundRequest {
|
|
core.InboundHandlerConfig inbound = 1;
|
|
}
|
|
|
|
message AddInboundResponse{
|
|
|
|
}
|
|
|
|
message RemoveInboundRequest {
|
|
string tag = 1;
|
|
}
|
|
|
|
message RemoveInboundResponse {}
|
|
|
|
message AlterInboundRequest {
|
|
string tag = 1;
|
|
v2ray.core.common.serial.TypedMessage operation = 2;
|
|
}
|
|
|
|
message AlterInboundResponse {
|
|
}
|
|
|
|
message AddOutboundRequest {
|
|
core.OutboundHandlerConfig outbound = 1;
|
|
}
|
|
|
|
message AddOutboundResponse {
|
|
|
|
}
|
|
|
|
message RemoveOutboundRequest {
|
|
string tag = 1;
|
|
}
|
|
|
|
message RemoveOutboundResponse {
|
|
}
|
|
|
|
message AlterOutboundRequest {
|
|
string tag = 1;
|
|
v2ray.core.common.serial.TypedMessage operation = 2;
|
|
}
|
|
|
|
message AlterOutboundResponse {
|
|
}
|
|
|
|
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 {}
|