2016-10-31 17:26:46 -04:00
|
|
|
// Code generated by protoc-gen-go.
|
|
|
|
// source: v2ray.com/core/transport/internet/authenticators/http/config.proto
|
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
/*
|
|
|
|
Package http is a generated protocol buffer package.
|
|
|
|
|
|
|
|
It is generated from these files:
|
|
|
|
v2ray.com/core/transport/internet/authenticators/http/config.proto
|
|
|
|
|
|
|
|
It has these top-level messages:
|
|
|
|
Header
|
2016-11-02 17:26:21 -04:00
|
|
|
Version
|
|
|
|
Method
|
2016-10-31 17:26:46 -04:00
|
|
|
RequestConfig
|
2016-11-02 17:26:21 -04:00
|
|
|
Status
|
2016-10-31 17:26:46 -04:00
|
|
|
ResponseConfig
|
2016-11-02 17:26:21 -04:00
|
|
|
Config
|
2016-10-31 17:26:46 -04:00
|
|
|
*/
|
|
|
|
package http
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
|
|
|
|
// 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 Header struct {
|
|
|
|
// "Accept", "Cookie", etc
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
// Each entry must be valid in one piece. Random entry will be chosen if multiple entries present.
|
|
|
|
Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Header) Reset() { *m = Header{} }
|
|
|
|
func (m *Header) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Header) ProtoMessage() {}
|
|
|
|
func (*Header) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
|
2016-11-02 17:26:21 -04:00
|
|
|
// HTTP version. Default value "1.1".
|
|
|
|
type Version struct {
|
2016-10-31 17:26:46 -04:00
|
|
|
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
2016-11-02 17:26:21 -04:00
|
|
|
func (m *Version) Reset() { *m = Version{} }
|
|
|
|
func (m *Version) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Version) ProtoMessage() {}
|
|
|
|
func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
|
|
|
|
// HTTP method. Default value "GET".
|
|
|
|
type Method struct {
|
|
|
|
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Method) Reset() { *m = Method{} }
|
|
|
|
func (m *Method) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Method) ProtoMessage() {}
|
|
|
|
func (*Method) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
2016-10-31 17:26:46 -04:00
|
|
|
|
|
|
|
type RequestConfig struct {
|
|
|
|
// Full HTTP version like "1.1".
|
2016-11-02 17:26:21 -04:00
|
|
|
Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
|
2016-10-31 17:26:46 -04:00
|
|
|
// GET, POST, CONNECT etc
|
2016-11-02 17:26:21 -04:00
|
|
|
Method *Method `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
|
2016-10-31 17:26:46 -04:00
|
|
|
// URI like "/login.php"
|
|
|
|
Uri []string `protobuf:"bytes,3,rep,name=uri" json:"uri,omitempty"`
|
|
|
|
Header []*Header `protobuf:"bytes,4,rep,name=header" json:"header,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestConfig) Reset() { *m = RequestConfig{} }
|
|
|
|
func (m *RequestConfig) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RequestConfig) ProtoMessage() {}
|
2016-11-02 17:26:21 -04:00
|
|
|
func (*RequestConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
|
|
|
|
func (m *RequestConfig) GetVersion() *Version {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestConfig) GetMethod() *Method {
|
|
|
|
if m != nil {
|
|
|
|
return m.Method
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2016-10-31 17:26:46 -04:00
|
|
|
|
|
|
|
func (m *RequestConfig) GetHeader() []*Header {
|
|
|
|
if m != nil {
|
|
|
|
return m.Header
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-02 17:26:21 -04:00
|
|
|
type Status struct {
|
|
|
|
// Status code. Default "200".
|
|
|
|
Code string `protobuf:"bytes,1,opt,name=code" json:"code,omitempty"`
|
|
|
|
// Statue reason. Default "OK".
|
|
|
|
Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Status) Reset() { *m = Status{} }
|
|
|
|
func (m *Status) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Status) ProtoMessage() {}
|
|
|
|
func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
|
2016-10-31 17:26:46 -04:00
|
|
|
type ResponseConfig struct {
|
2016-11-02 17:26:21 -04:00
|
|
|
Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
|
|
|
|
Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
|
|
|
|
Header []*Header `protobuf:"bytes,3,rep,name=header" json:"header,omitempty"`
|
2016-10-31 17:26:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseConfig) Reset() { *m = ResponseConfig{} }
|
|
|
|
func (m *ResponseConfig) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ResponseConfig) ProtoMessage() {}
|
2016-11-02 17:26:21 -04:00
|
|
|
func (*ResponseConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
|
|
|
|
func (m *ResponseConfig) GetVersion() *Version {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseConfig) GetStatus() *Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2016-10-31 17:26:46 -04:00
|
|
|
|
|
|
|
func (m *ResponseConfig) GetHeader() []*Header {
|
|
|
|
if m != nil {
|
|
|
|
return m.Header
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-02 17:26:21 -04:00
|
|
|
type Config struct {
|
|
|
|
Request *RequestConfig `protobuf:"bytes,1,opt,name=request" json:"request,omitempty"`
|
|
|
|
Response *ResponseConfig `protobuf:"bytes,2,opt,name=response" json:"response,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{6} }
|
|
|
|
|
|
|
|
func (m *Config) GetRequest() *RequestConfig {
|
|
|
|
if m != nil {
|
|
|
|
return m.Request
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Config) GetResponse() *ResponseConfig {
|
|
|
|
if m != nil {
|
|
|
|
return m.Response
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-10-31 17:26:46 -04:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Header)(nil), "v2ray.core.transport.internet.authenticators.http.Header")
|
2016-11-02 17:26:21 -04:00
|
|
|
proto.RegisterType((*Version)(nil), "v2ray.core.transport.internet.authenticators.http.Version")
|
|
|
|
proto.RegisterType((*Method)(nil), "v2ray.core.transport.internet.authenticators.http.Method")
|
2016-10-31 17:26:46 -04:00
|
|
|
proto.RegisterType((*RequestConfig)(nil), "v2ray.core.transport.internet.authenticators.http.RequestConfig")
|
2016-11-02 17:26:21 -04:00
|
|
|
proto.RegisterType((*Status)(nil), "v2ray.core.transport.internet.authenticators.http.Status")
|
2016-10-31 17:26:46 -04:00
|
|
|
proto.RegisterType((*ResponseConfig)(nil), "v2ray.core.transport.internet.authenticators.http.ResponseConfig")
|
2016-11-02 17:26:21 -04:00
|
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.authenticators.http.Config")
|
2016-10-31 17:26:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("v2ray.com/core/transport/internet/authenticators/http/config.proto", fileDescriptor0)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
2016-11-02 17:26:21 -04:00
|
|
|
// 389 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0xc1, 0x4e, 0xe3, 0x30,
|
|
|
|
0x10, 0x40, 0xd5, 0xa4, 0x9b, 0x6e, 0xa7, 0xda, 0xd5, 0xca, 0x5a, 0xad, 0x72, 0xda, 0xad, 0x72,
|
|
|
|
0xea, 0xc9, 0xd1, 0x76, 0x97, 0x03, 0x9c, 0xa0, 0x5c, 0x10, 0x12, 0x12, 0x18, 0xc4, 0xa1, 0x12,
|
|
|
|
0x07, 0x93, 0x0e, 0x24, 0x12, 0xb1, 0x83, 0xed, 0x54, 0xe2, 0x1f, 0xf8, 0x05, 0xbe, 0x86, 0x1f,
|
|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