config.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. syntax = "proto3";
  2. package v2ray.core.app.commander;
  3. option csharp_namespace = "V2Ray.Core.App.Commander";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/app/commander";
  5. option java_package = "com.v2ray.core.app.commander";
  6. option java_multiple_files = true;
  7. import "google/protobuf/any.proto";
  8. import "common/protoext/extensions.proto";
  9. // Config is the settings for Commander.
  10. message Config {
  11. // Tag of the outbound handler that handles grpc connections.
  12. string tag = 1;
  13. // Services that supported by this server. All services must implement Service
  14. // interface.
  15. repeated google.protobuf.Any service = 2;
  16. }
  17. // ReflectionConfig is the placeholder config for ReflectionService.
  18. message ReflectionConfig {
  19. option (v2ray.core.common.protoext.message_opt).type = "grpcservice";
  20. option (v2ray.core.common.protoext.message_opt).short_name = "reflection";
  21. }
  22. message SimplifiedConfig {
  23. option (v2ray.core.common.protoext.message_opt).type = "service";
  24. option (v2ray.core.common.protoext.message_opt).short_name = "commander";
  25. string tag = 1;
  26. repeated string name = 2;
  27. }