2017-01-02 19:52:45 +00:00
|
|
|
package websocket
|
|
|
|
|
|
|
|
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 ConnectionReuse struct {
|
|
|
|
Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConnectionReuse) Reset() { *m = ConnectionReuse{} }
|
|
|
|
func (m *ConnectionReuse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ConnectionReuse) ProtoMessage() {}
|
|
|
|
func (*ConnectionReuse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
|
|
|
|
func (m *ConnectionReuse) GetEnable() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Enable
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
// Whether or not to reuse WebSocket connections.
|
|
|
|
ConnectionReuse *ConnectionReuse `protobuf:"bytes,1,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"`
|
|
|
|
// URL path to the WebSocket service. Empty value means root(/).
|
|
|
|
Path string `protobuf:"bytes,2,opt,name=path" json:"path,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) GetConnectionReuse() *ConnectionReuse {
|
|
|
|
if m != nil {
|
|
|
|
return m.ConnectionReuse
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Config) GetPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*ConnectionReuse)(nil), "v2ray.core.transport.internet.websocket.ConnectionReuse")
|
|
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.websocket.Config")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("v2ray.com/core/transport/internet/websocket/config.proto", fileDescriptor0)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
2017-02-03 22:15:10 +00:00
|
|
|
// 226 bytes of a gzipped FileDescriptorProto
|
2017-04-04 10:28:14 +00:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd0, 0xb1, 0x4a, 0x03, 0x41,
|
2017-02-03 22:15:10 +00:00
|
|
|
0x10, 0x80, 0x61, 0x36, 0xc8, 0x61, 0xd6, 0x22, 0x72, 0x85, 0xa4, 0x0c, 0x69, 0x12, 0x11, 0x76,
|
|
|
|
0xe1, 0x6c, 0x52, 0x7b, 0x95, 0x9d, 0x2c, 0xa2, 0x60, 0x23, 0x7b, 0xe3, 0xa8, 0x87, 0x66, 0xe6,
|
|
|
|
0x98, 0x1b, 0x95, 0x94, 0xbe, 0x8e, 0x4f, 0x29, 0x39, 0xb2, 0x5b, 0xa4, 0xba, 0x6e, 0x07, 0xe6,
|
|
|
|
0xe3, 0x5f, 0xc6, 0x6e, 0xbe, 0x2b, 0x89, 0x3b, 0x07, 0xbc, 0xf5,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