mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
re-generate code
This commit is contained in:
+62
-14
@@ -17,17 +17,40 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Config for HTTP proxy server.
|
||||
type ServerConfig struct {
|
||||
Timeout uint32 `protobuf:"varint,1,opt,name=timeout" json:"timeout,omitempty"`
|
||||
Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
AllowTransparent bool `protobuf:"varint,3,opt,name=allow_transparent,json=allowTransparent" json:"allow_transparent,omitempty"`
|
||||
UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel" json:"user_level,omitempty"`
|
||||
Timeout uint32 `protobuf:"varint,1,opt,name=timeout" json:"timeout,omitempty"` // Deprecated: Do not use.
|
||||
Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
AllowTransparent bool `protobuf:"varint,3,opt,name=allow_transparent,json=allowTransparent" json:"allow_transparent,omitempty"`
|
||||
UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel" json:"user_level,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ServerConfig) Reset() { *m = ServerConfig{} }
|
||||
func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServerConfig) ProtoMessage() {}
|
||||
func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *ServerConfig) Reset() { *m = ServerConfig{} }
|
||||
func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServerConfig) ProtoMessage() {}
|
||||
func (*ServerConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_593308a66adc1606, []int{0}
|
||||
}
|
||||
func (m *ServerConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ServerConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ServerConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ServerConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ServerConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *ServerConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_ServerConfig.Size(m)
|
||||
}
|
||||
func (m *ServerConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ServerConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ServerConfig proto.InternalMessageInfo
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *ServerConfig) GetTimeout() uint32 {
|
||||
if m != nil {
|
||||
return m.Timeout
|
||||
@@ -58,21 +81,46 @@ func (m *ServerConfig) GetUserLevel() uint32 {
|
||||
|
||||
// ClientConfig for HTTP proxy client.
|
||||
type ClientConfig struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ClientConfig) Reset() { *m = ClientConfig{} }
|
||||
func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ClientConfig) ProtoMessage() {}
|
||||
func (*ClientConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *ClientConfig) Reset() { *m = ClientConfig{} }
|
||||
func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ClientConfig) ProtoMessage() {}
|
||||
func (*ClientConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_593308a66adc1606, []int{1}
|
||||
}
|
||||
func (m *ClientConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ClientConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ClientConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ClientConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *ClientConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_ClientConfig.Size(m)
|
||||
}
|
||||
func (m *ClientConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ClientConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ClientConfig proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ServerConfig)(nil), "v2ray.core.proxy.http.ServerConfig")
|
||||
proto.RegisterMapType((map[string]string)(nil), "v2ray.core.proxy.http.ServerConfig.AccountsEntry")
|
||||
proto.RegisterType((*ClientConfig)(nil), "v2ray.core.proxy.http.ClientConfig")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("v2ray.com/core/proxy/http/config.proto", fileDescriptor0) }
|
||||
func init() {
|
||||
proto.RegisterFile("v2ray.com/core/proxy/http/config.proto", fileDescriptor_config_593308a66adc1606)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_config_593308a66adc1606 = []byte{
|
||||
// 296 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0x33, 0x31,
|
||||
0x14, 0xc5, 0x99, 0x69, 0xbf, 0xcf, 0xf6, 0xda, 0x4a, 0x0d, 0x16, 0x46, 0x51, 0x28, 0x5d, 0x48,
|
||||
|
||||
Reference in New Issue
Block a user