mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-10-31 00:08:08 -04:00
216 lines
8.6 KiB
Go
216 lines
8.6 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: v2ray.com/core/transport/internet/headers/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/headers/http/config.proto
|
|
|
|
It has these top-level messages:
|
|
Header
|
|
Version
|
|
Method
|
|
RequestConfig
|
|
Status
|
|
ResponseConfig
|
|
Config
|
|
*/
|
|
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} }
|
|
|
|
// HTTP version. Default value "1.1".
|
|
type Version struct {
|
|
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
|
|
}
|
|
|
|
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} }
|
|
|
|
type RequestConfig struct {
|
|
// Full HTTP version like "1.1".
|
|
Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
|
|
// GET, POST, CONNECT etc
|
|
Method *Method `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
|
|
// 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() {}
|
|
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
|
|
}
|
|
|
|
func (m *RequestConfig) GetHeader() []*Header {
|
|
if m != nil {
|
|
return m.Header
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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} }
|
|
|
|
type ResponseConfig struct {
|
|
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"`
|
|
}
|
|
|
|
func (m *ResponseConfig) Reset() { *m = ResponseConfig{} }
|
|
func (m *ResponseConfig) String() string { return proto.CompactTextString(m) }
|
|
func (*ResponseConfig) ProtoMessage() {}
|
|
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
|
|
}
|
|
|
|
func (m *ResponseConfig) GetHeader() []*Header {
|
|
if m != nil {
|
|
return m.Header
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Config struct {
|
|
// Settings for authenticating requests. If not set, client side will not send authenication header, and server side will bypass authentication.
|
|
Request *RequestConfig `protobuf:"bytes,1,opt,name=request" json:"request,omitempty"`
|
|
// Settings for authenticating responses. If not set, client side will bypass authentication, and server side will not send authentication header.
|
|
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
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Header)(nil), "v2ray.core.transport.internet.headers.http.Header")
|
|
proto.RegisterType((*Version)(nil), "v2ray.core.transport.internet.headers.http.Version")
|
|
proto.RegisterType((*Method)(nil), "v2ray.core.transport.internet.headers.http.Method")
|
|
proto.RegisterType((*RequestConfig)(nil), "v2ray.core.transport.internet.headers.http.RequestConfig")
|
|
proto.RegisterType((*Status)(nil), "v2ray.core.transport.internet.headers.http.Status")
|
|
proto.RegisterType((*ResponseConfig)(nil), "v2ray.core.transport.internet.headers.http.ResponseConfig")
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.headers.http.Config")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("v2ray.com/core/transport/internet/headers/http/config.proto", fileDescriptor0)
|
|
}
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 373 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x93, 0x4f, 0x4b, 0xf3, 0x40,
|
|
0x10, 0xc6, 0x49, 0xd3, 0x37, 0x7d, 0x3b, 0x45, 0x91, 0x45, 0x24, 0x27, 0x2d, 0x39, 0x15, 0x0f,
|
|
0x1b, 0x48, 0xbd, 0xa8, 0xb7, 0xf6, 0x22, 0x42, 0x41, 0xb6, 0xd0, 0x83, 0xb7, 0x98, 0x8e, 0x36,
|
|
0x60, 0x77, 0xe3, 0xee, 0xa6, 0xe0, 0x37, 0xf0, 0x0b, 0xf9, 0xd9, 0xbc, 0xca, 0xfe, 0x49, 0xad,
|
|
0x07, 0xc1, 0x28, 0xde, 0x66, 0xda, 0x79, 0x7e, 0xcc, 0xf3, 0x64, 0x07, 0x2e, 0x37, 0x99, 0xcc,
|
|
0x9f, 0x69, 0x21, 0xd6, 0x69, 0x21, 0x24, 0xa6, 0x5a, 0xe6, 0x5c, 0x55, 0x42, 0xea, 0xb4, 0xe4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