v2ray-core/config.proto

33 lines
1.0 KiB
Protocol Buffer
Raw Normal View History

2016-10-12 18:43:55 +02:00
syntax = "proto3";
package v2ray.core;
2016-12-23 00:24:28 +01:00
option csharp_namespace = "V2Ray.Core";
2016-10-12 18:43:55 +02:00
option go_package = "core";
option java_package = "com.v2ray.core";
option java_outer_classname = "ConfigProto";
import "v2ray.com/core/app/proxyman/config.proto";
2016-12-15 11:51:09 +01:00
import "v2ray.com/core/common/serial/typed_message.proto";
2016-10-14 22:21:45 +02:00
import "v2ray.com/core/common/log/config.proto";
import "v2ray.com/core/transport/config.proto";
2016-10-12 18:43:55 +02:00
2016-10-18 00:09:49 +02:00
// Configuration serialization format.
2016-10-14 23:41:41 +02:00
enum ConfigFormat {
Protobuf = 0;
JSON = 1;
}
2016-10-14 22:21:45 +02:00
message Config {
2016-10-18 00:09:49 +02:00
// Inbound handler configurations. Must have at least one item.
repeated v2ray.core.app.proxyman.InboundHandlerConfig inbound = 1;
2016-10-18 00:09:49 +02:00
// Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
repeated v2ray.core.app.proxyman.OutboundHandlerConfig outbound = 2;
2016-10-14 22:21:45 +02:00
v2ray.core.common.log.Config log = 3;
2016-10-18 00:09:49 +02:00
// App configuration. Must be one in the app directory.
2016-12-15 11:51:09 +01:00
repeated v2ray.core.common.serial.TypedMessage app = 4;
2016-10-16 16:04:30 +02:00
v2ray.core.transport.Config transport = 5;
}