mirror of https://github.com/v2ray/v2ray-core
131 lines
5.4 KiB
Go
131 lines
5.4 KiB
Go
package inbound
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import v2ray_core_common_protocol "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 DetourConfig struct {
|
|
To string `protobuf:"bytes,1,opt,name=to" json:"to,omitempty"`
|
|
}
|
|
|
|
func (m *DetourConfig) Reset() { *m = DetourConfig{} }
|
|
func (m *DetourConfig) String() string { return proto.CompactTextString(m) }
|
|
func (*DetourConfig) ProtoMessage() {}
|
|
func (*DetourConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *DetourConfig) GetTo() string {
|
|
if m != nil {
|
|
return m.To
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DefaultConfig struct {
|
|
AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId" json:"alter_id,omitempty"`
|
|
Level uint32 `protobuf:"varint,2,opt,name=level" json:"level,omitempty"`
|
|
}
|
|
|
|
func (m *DefaultConfig) Reset() { *m = DefaultConfig{} }
|
|
func (m *DefaultConfig) String() string { return proto.CompactTextString(m) }
|
|
func (*DefaultConfig) ProtoMessage() {}
|
|
func (*DefaultConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *DefaultConfig) GetAlterId() uint32 {
|
|
if m != nil {
|
|
return m.AlterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DefaultConfig) GetLevel() uint32 {
|
|
if m != nil {
|
|
return m.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Config struct {
|
|
User []*v2ray_core_common_protocol.User `protobuf:"bytes,1,rep,name=user" json:"user,omitempty"`
|
|
Default *DefaultConfig `protobuf:"bytes,2,opt,name=default" json:"default,omitempty"`
|
|
Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour" json:"detour,omitempty"`
|
|
SecureEncryptionOnly bool `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly" json:"secure_encryption_only,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{2} }
|
|
|
|
func (m *Config) GetUser() []*v2ray_core_common_protocol.User {
|
|
if m != nil {
|
|
return m.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Config) GetDefault() *DefaultConfig {
|
|
if m != nil {
|
|
return m.Default
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Config) GetDetour() *DetourConfig {
|
|
if m != nil {
|
|
return m.Detour
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Config) GetSecureEncryptionOnly() bool {
|
|
if m != nil {
|
|
return m.SecureEncryptionOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*DetourConfig)(nil), "v2ray.core.proxy.vmess.inbound.DetourConfig")
|
|
proto.RegisterType((*DefaultConfig)(nil), "v2ray.core.proxy.vmess.inbound.DefaultConfig")
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.proxy.vmess.inbound.Config")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("v2ray.com/core/proxy/vmess/inbound/config.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 333 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff,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