| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- package freedom
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import v2ray_core_common_protocol1 "v2ray.com/core/common/protocol"
- // 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
- type Config_DomainStrategy int32
- const (
- Config_AS_IS Config_DomainStrategy = 0
- Config_USE_IP Config_DomainStrategy = 1
- )
- var Config_DomainStrategy_name = map[int32]string{
- 0: "AS_IS",
- 1: "USE_IP",
- }
- var Config_DomainStrategy_value = map[string]int32{
- "AS_IS": 0,
- "USE_IP": 1,
- }
- func (x Config_DomainStrategy) String() string {
- return proto.EnumName(Config_DomainStrategy_name, int32(x))
- }
- func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
- type DestinationOverride struct {
- Server *v2ray_core_common_protocol1.ServerEndpoint `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
- }
- func (m *DestinationOverride) Reset() { *m = DestinationOverride{} }
- func (m *DestinationOverride) String() string { return proto.CompactTextString(m) }
- func (*DestinationOverride) ProtoMessage() {}
- func (*DestinationOverride) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- func (m *DestinationOverride) GetServer() *v2ray_core_common_protocol1.ServerEndpoint {
- if m != nil {
- return m.Server
- }
- return nil
- }
- type Config struct {
- DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
- Timeout uint32 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"`
- DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride" json:"destination_override,omitempty"`
- KeepAliveOnResponseClose bool `protobuf:"varint,4,opt,name=keep_alive_on_response_close,json=keepAliveOnResponseClose" json:"keep_alive_on_response_close,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{1} }
- func (m *Config) GetDomainStrategy() Config_DomainStrategy {
- if m != nil {
- return m.DomainStrategy
- }
- return Config_AS_IS
- }
- func (m *Config) GetTimeout() uint32 {
- if m != nil {
- return m.Timeout
- }
- return 0
- }
- func (m *Config) GetDestinationOverride() *DestinationOverride {
- if m != nil {
- return m.DestinationOverride
- }
- return nil
- }
- func (m *Config) GetKeepAliveOnResponseClose() bool {
- if m != nil {
- return m.KeepAliveOnResponseClose
- }
- return false
- }
- func init() {
- proto.RegisterType((*DestinationOverride)(nil), "v2ray.core.proxy.freedom.DestinationOverride")
- proto.RegisterType((*Config)(nil), "v2ray.core.proxy.freedom.Config")
- proto.RegisterEnum("v2ray.core.proxy.freedom.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)
- }
- func init() { proto.RegisterFile("v2ray.com/core/proxy/freedom/config.proto", fileDescriptor0) }
- var fileDescriptor0 = []byte{
- // 361 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcf, 0x4e, 0xe3, 0x30,
- 0x10, 0xc6, 0x37, 0xdd, 0xdd, 0x74, 0xd7, 0x88, 0x52, 0xa5, 0x1c, 0x2c, 0xd4, 0x43, 0xd5, 0x0b,
- 0x05, 0x09, 0x07, 0x85, 0x3b, 0x52, 0xff, 0x21, 0xf5, 0xd4, 0x2a, 0x11, 0x08, 0xb8, 0x98, 0x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