2018-02-05 23:38:24 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package v2ray.core.app.commander;
|
|
|
|
option csharp_namespace = "V2Ray.Core.App.Commander";
|
2022-01-02 15:16:23 +00:00
|
|
|
option go_package = "github.com/v2fly/v2ray-core/v5/app/commander";
|
2018-02-05 23:38:24 +01:00
|
|
|
option java_package = "com.v2ray.core.app.commander";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
2021-06-23 14:34:03 +01:00
|
|
|
import "google/protobuf/any.proto";
|
2021-09-07 14:33:00 +01:00
|
|
|
import "common/protoext/extensions.proto";
|
2018-02-08 23:24:35 +01:00
|
|
|
|
|
|
|
// Config is the settings for Commander.
|
2018-02-05 23:38:24 +01:00
|
|
|
message Config {
|
2018-02-08 23:24:35 +01:00
|
|
|
// Tag of the outbound handler that handles grpc connections.
|
2018-02-05 23:38:24 +01:00
|
|
|
string tag = 1;
|
2020-10-05 08:36:40 +08:00
|
|
|
// Services that supported by this server. All services must implement Service
|
|
|
|
// interface.
|
2021-06-19 14:36:54 +01:00
|
|
|
repeated google.protobuf.Any service = 2;
|
2018-02-05 23:38:24 +01:00
|
|
|
}
|
2020-11-20 01:57:31 +08:00
|
|
|
|
|
|
|
// ReflectionConfig is the placeholder config for ReflectionService.
|
2021-09-07 14:43:45 +01:00
|
|
|
message ReflectionConfig {
|
|
|
|
option (v2ray.core.common.protoext.message_opt).type = "grpcservice";
|
|
|
|
option (v2ray.core.common.protoext.message_opt).short_name = "reflection";
|
|
|
|
}
|
2021-09-07 14:33:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
message SimplifiedConfig {
|
|
|
|
option (v2ray.core.common.protoext.message_opt).type = "service";
|
|
|
|
option (v2ray.core.common.protoext.message_opt).short_name = "commander";
|
|
|
|
|
|
|
|
string tag = 1;
|
|
|
|
repeated string name = 2;
|
|
|
|
}
|