config.pb.go 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package websocket
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. // Reference imports to suppress errors if they are not otherwise used.
  6. var _ = proto.Marshal
  7. var _ = fmt.Errorf
  8. var _ = math.Inf
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the proto package it is being compiled against.
  11. // A compilation error at this line likely means your copy of the
  12. // proto package needs to be updated.
  13. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  14. type ConnectionReuse struct {
  15. Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
  16. }
  17. func (m *ConnectionReuse) Reset() { *m = ConnectionReuse{} }
  18. func (m *ConnectionReuse) String() string { return proto.CompactTextString(m) }
  19. func (*ConnectionReuse) ProtoMessage() {}
  20. func (*ConnectionReuse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  21. func (m *ConnectionReuse) GetEnable() bool {
  22. if m != nil {
  23. return m.Enable
  24. }
  25. return false
  26. }
  27. type Config struct {
  28. // Whether or not to reuse WebSocket connections.
  29. ConnectionReuse *ConnectionReuse `protobuf:"bytes,1,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"`
  30. // URL path to the WebSocket service. Empty value means root(/).
  31. Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
  32. }
  33. func (m *Config) Reset() { *m = Config{} }
  34. func (m *Config) String() string { return proto.CompactTextString(m) }
  35. func (*Config) ProtoMessage() {}
  36. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  37. func (m *Config) GetConnectionReuse() *ConnectionReuse {
  38. if m != nil {
  39. return m.ConnectionReuse
  40. }
  41. return nil
  42. }
  43. func (m *Config) GetPath() string {
  44. if m != nil {
  45. return m.Path
  46. }
  47. return ""
  48. }
  49. func init() {
  50. proto.RegisterType((*ConnectionReuse)(nil), "v2ray.core.transport.internet.websocket.ConnectionReuse")
  51. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.websocket.Config")
  52. }
  53. func init() {
  54. proto.RegisterFile("v2ray.com/core/transport/internet/websocket/config.proto", fileDescriptor0)
  55. }
  56. var fileDescriptor0 = []byte{
  57. // 226 bytes of a gzipped FileDescriptorProto
  58. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd0, 0xb1, 0x4a, 0x03, 0x41,
  59. 0x10, 0x80, 0x61, 0x36, 0xc8, 0x61, 0xd6, 0x22, 0x72, 0x85, 0xa4, 0x0c, 0x69, 0x12, 0x11, 0x76,
  60. 0xe1, 0x6c, 0x52, 0x7b, 0x95, 0x9d, 0x2c, 0xa2, 0x60, 0x23, 0x7b, 0xe3, 0xa8, 0x87, 0x66, 0xe6,
  61. 0x98, 0x1b, 0x95, 0x94, 0xbe, 0x8e, 0x4f, 0x29, 0x39, 0xb2, 0x5b, 0xa4, 0xba, 0x6e, 0x07, 0xe6,
  62. 0xe3, 0x5f, 0xc6, 0x6e, 0xbe, 0x2b, 0x89, 0x3b, 0x07, 0xbc, 0xf5, 0xc0, 0x82, 0x5e, 0x25, 0x52,
  63. 0xdf, 0xb1, 0xa8, 0x6f, 0x49, 0x51, 0x08, 0xd5, 0xff, 0x60, 0xd3, 0x33, 0x7c, 0xa0, 0x7a, 0x60,
  64. 0x7a, 0x6d, 0xdf, 0x5c, 0x27, 0xac, 0x5c, 0xae, 0x92, 0x14, 0x74, 0x59, 0xb9, 0xa4, 0x5c, 0x56,
  65. 0xcb, 0x4b, 0x3b, 0xab, 0x99, 0x08, 0x41, 0x5b, 0xa6, 0x80, 0x5f, 0x3d, 0x96, 0x17, 0xb6, 0x40,
  66. 0x8a, 0xcd, 0x27, 0xce, 0xcd, 0xc2, 0xac, 0x4f, 0xc3, 0x61, 0x5a, 0xfe, 0x1a, 0x5b, 0xd4, 0x43,
  67. 0xa4,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