| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- package core
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import v2ray_core_app_proxyman "v2ray.com/core/app/proxyman"
- import v2ray_core_common_serial "v2ray.com/core/common/serial"
- import v2ray_core_common_log "v2ray.com/core/common/log"
- import v2ray_core_transport "v2ray.com/core/transport"
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- // Configuration serialization format.
- type ConfigFormat int32
- const (
- ConfigFormat_Protobuf ConfigFormat = 0
- ConfigFormat_JSON ConfigFormat = 1
- )
- var ConfigFormat_name = map[int32]string{
- 0: "Protobuf",
- 1: "JSON",
- }
- var ConfigFormat_value = map[string]int32{
- "Protobuf": 0,
- "JSON": 1,
- }
- func (x ConfigFormat) String() string {
- return proto.EnumName(ConfigFormat_name, int32(x))
- }
- func (ConfigFormat) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- type Config struct {
- // Inbound handler configurations. Must have at least one item.
- Inbound []*v2ray_core_app_proxyman.InboundHandlerConfig `protobuf:"bytes,1,rep,name=inbound" json:"inbound,omitempty"`
- // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
- Outbound []*v2ray_core_app_proxyman.OutboundHandlerConfig `protobuf:"bytes,2,rep,name=outbound" json:"outbound,omitempty"`
- Log *v2ray_core_common_log.Config `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
- // App configuration. Must be one in the app directory.
- App []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=app" json:"app,omitempty"`
- Transport *v2ray_core_transport.Config `protobuf:"bytes,5,opt,name=transport" json:"transport,omitempty"`
- }
- func (m *Config) Reset() { *m = Config{} }
- func (m *Config) String() string { return proto.CompactTextString(m) }
- func (*Config) ProtoMessage() {}
- func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- func (m *Config) GetInbound() []*v2ray_core_app_proxyman.InboundHandlerConfig {
- if m != nil {
- return m.Inbound
- }
- return nil
- }
- func (m *Config) GetOutbound() []*v2ray_core_app_proxyman.OutboundHandlerConfig {
- if m != nil {
- return m.Outbound
- }
- return nil
- }
- func (m *Config) GetLog() *v2ray_core_common_log.Config {
- if m != nil {
- return m.Log
- }
- return nil
- }
- func (m *Config) GetApp() []*v2ray_core_common_serial.TypedMessage {
- if m != nil {
- return m.App
- }
- return nil
- }
- func (m *Config) GetTransport() *v2ray_core_transport.Config {
- if m != nil {
- return m.Transport
- }
- return nil
- }
- func init() {
- proto.RegisterType((*Config)(nil), "v2ray.core.Config")
- proto.RegisterEnum("v2ray.core.ConfigFormat", ConfigFormat_name, ConfigFormat_value)
- }
- func init() { proto.RegisterFile("v2ray.com/core/config.proto", fileDescriptor0) }
- var fileDescriptor0 = []byte{
- // 338 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0xdf, 0x4a, 0x02, 0x41,
- 0x14, 0xc6, 0xd3, 0x35, 0xb3, 0xa3, 0x84, 0xcc, 0xd5, 0x62, 0x05, 0x12, 0x24, 0x12, 0x34, 0x2b,
- 0xdb, 0x4d, 0x74, 0xa9, 0xd0, 0x1f, 0xa1, 0x0c, 0x8b, 0x2e, 0xba, 0x89, 0x71, 0x1d, 0x17, 0x61,
- 0x67, 0xce, 0x30, 0xbb, 0x46, 0xfb, 0x4a, 0x3d, 0x47, 0x0f, 0x16, 0x3b, 0xe3, 0xaa, 0x6b, 0x76,
- 0x7b, 0xe6, 0xfb, 0xfd, 0x0e, 0xe7, 0x1b, 0x38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