2020-11-25 14:01:53 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package xray.app.proxyman.command;
|
|
|
|
option csharp_namespace = "Xray.App.Proxyman.Command";
|
2020-12-04 04:36:16 +03:00
|
|
|
option go_package = "github.com/xtls/xray-core/app/proxyman/command";
|
2020-11-25 14:01:53 +03:00
|
|
|
option java_package = "com.xray.app.proxyman.command";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
|
|
|
import "common/protocol/user.proto";
|
|
|
|
import "common/serial/typed_message.proto";
|
|
|
|
import "core/config.proto";
|
|
|
|
|
|
|
|
message AddUserOperation {
|
|
|
|
xray.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;
|
|
|
|
xray.common.serial.TypedMessage operation = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AlterInboundResponse {}
|
|
|
|
|
2024-11-03 07:25:23 +03:00
|
|
|
message GetInboundUserRequest {
|
|
|
|
string tag = 1;
|
|
|
|
string email = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetInboundUserResponse {
|
|
|
|
repeated xray.common.protocol.User users = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetInboundUsersCountResponse {
|
|
|
|
int64 count = 1;
|
|
|
|
}
|
|
|
|
|
2020-11-25 14:01:53 +03:00
|
|
|
message AddOutboundRequest {
|
|
|
|
core.OutboundHandlerConfig outbound = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AddOutboundResponse {}
|
|
|
|
|
|
|
|
message RemoveOutboundRequest {
|
|
|
|
string tag = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveOutboundResponse {}
|
|
|
|
|
|
|
|
message AlterOutboundRequest {
|
|
|
|
string tag = 1;
|
|
|
|
xray.common.serial.TypedMessage operation = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AlterOutboundResponse {}
|
|
|
|
|
|
|
|
service HandlerService {
|
|
|
|
rpc AddInbound(AddInboundRequest) returns (AddInboundResponse) {}
|
|
|
|
|
|
|
|
rpc RemoveInbound(RemoveInboundRequest) returns (RemoveInboundResponse) {}
|
|
|
|
|
|
|
|
rpc AlterInbound(AlterInboundRequest) returns (AlterInboundResponse) {}
|
|
|
|
|
2024-11-03 07:25:23 +03:00
|
|
|
rpc GetInboundUsers(GetInboundUserRequest) returns (GetInboundUserResponse) {}
|
|
|
|
|
|
|
|
rpc GetInboundUsersCount(GetInboundUserRequest) returns (GetInboundUsersCountResponse) {}
|
|
|
|
|
2020-11-25 14:01:53 +03:00
|
|
|
rpc AddOutbound(AddOutboundRequest) returns (AddOutboundResponse) {}
|
|
|
|
|
|
|
|
rpc RemoveOutbound(RemoveOutboundRequest) returns (RemoveOutboundResponse) {}
|
|
|
|
|
|
|
|
rpc AlterOutbound(AlterOutboundRequest) returns (AlterOutboundResponse) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
message Config {}
|