Documentation ¶
Index ¶
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)
- func (m *Envelope) GetPacket() *MessagePacket
- func (m *Envelope) GetPing() *MessagePing
- func (m *Envelope) GetType() isEnvelope_Type
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) String() string
- func (m *Envelope) XXX_DiscardUnknown()
- func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Envelope) XXX_Merge(src proto.Message)
- func (*Envelope) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Envelope) XXX_Size() int
- func (m *Envelope) XXX_Unmarshal(b []byte) error
- type Envelope_Packet
- type Envelope_Ping
- type MessagePacket
- func (*MessagePacket) Descriptor() ([]byte, []int)
- func (m *MessagePacket) GetPayload() []byte
- func (*MessagePacket) ProtoMessage()
- func (m *MessagePacket) Reset()
- func (m *MessagePacket) String() string
- func (m *MessagePacket) XXX_DiscardUnknown()
- func (m *MessagePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessagePacket) XXX_Merge(src proto.Message)
- func (m *MessagePacket) XXX_Size() int
- func (m *MessagePacket) XXX_Unmarshal(b []byte) error
- type MessagePing
- func (*MessagePing) Descriptor() ([]byte, []int)
- func (m *MessagePing) GetDC() string
- func (m *MessagePing) GetIP() string
- func (m *MessagePing) GetLocalAddr() string
- func (m *MessagePing) GetLocalPrivateAddr() string
- func (m *MessagePing) GetTimestamp() int64
- func (*MessagePing) ProtoMessage()
- func (m *MessagePing) Reset()
- func (m *MessagePing) String() string
- func (m *MessagePing) XXX_DiscardUnknown()
- func (m *MessagePing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessagePing) XXX_Merge(src proto.Message)
- func (m *MessagePing) XXX_Size() int
- func (m *MessagePing) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { // Types that are valid to be assigned to Type: // *Envelope_Ping // *Envelope_Packet Type isEnvelope_Type `protobuf_oneof:"type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Envelope) Descriptor ¶
func (*Envelope) GetPacket ¶
func (m *Envelope) GetPacket() *MessagePacket
func (*Envelope) GetPing ¶
func (m *Envelope) GetPing() *MessagePing
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) XXX_DiscardUnknown ¶
func (m *Envelope) XXX_DiscardUnknown()
func (*Envelope) XXX_Marshal ¶
func (*Envelope) XXX_OneofFuncs ¶
func (*Envelope) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Envelope) XXX_Unmarshal ¶
type Envelope_Packet ¶
type Envelope_Packet struct {
Packet *MessagePacket `protobuf:"bytes,2,opt,name=packet,proto3,oneof"`
}
type Envelope_Ping ¶
type Envelope_Ping struct {
Ping *MessagePing `protobuf:"bytes,1,opt,name=ping,proto3,oneof"`
}
type MessagePacket ¶
type MessagePacket struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MessagePacket) Descriptor ¶
func (*MessagePacket) Descriptor() ([]byte, []int)
func (*MessagePacket) GetPayload ¶
func (m *MessagePacket) GetPayload() []byte
func (*MessagePacket) ProtoMessage ¶
func (*MessagePacket) ProtoMessage()
func (*MessagePacket) Reset ¶
func (m *MessagePacket) Reset()
func (*MessagePacket) String ¶
func (m *MessagePacket) String() string
func (*MessagePacket) XXX_DiscardUnknown ¶
func (m *MessagePacket) XXX_DiscardUnknown()
func (*MessagePacket) XXX_Marshal ¶
func (m *MessagePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessagePacket) XXX_Merge ¶
func (m *MessagePacket) XXX_Merge(src proto.Message)
func (*MessagePacket) XXX_Size ¶
func (m *MessagePacket) XXX_Size() int
func (*MessagePacket) XXX_Unmarshal ¶
func (m *MessagePacket) XXX_Unmarshal(b []byte) error
type MessagePing ¶
type MessagePing struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` LocalAddr string `protobuf:"bytes,2,opt,name=LocalAddr,proto3" json:"LocalAddr,omitempty"` LocalPrivateAddr string `protobuf:"bytes,3,opt,name=LocalPrivateAddr,proto3" json:"LocalPrivateAddr,omitempty"` IP string `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"` DC string `protobuf:"bytes,5,opt,name=DC,proto3" json:"DC,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MessagePing) Descriptor ¶
func (*MessagePing) Descriptor() ([]byte, []int)
func (*MessagePing) GetDC ¶
func (m *MessagePing) GetDC() string
func (*MessagePing) GetIP ¶
func (m *MessagePing) GetIP() string
func (*MessagePing) GetLocalAddr ¶
func (m *MessagePing) GetLocalAddr() string
func (*MessagePing) GetLocalPrivateAddr ¶
func (m *MessagePing) GetLocalPrivateAddr() string
func (*MessagePing) GetTimestamp ¶
func (m *MessagePing) GetTimestamp() int64
func (*MessagePing) ProtoMessage ¶
func (*MessagePing) ProtoMessage()
func (*MessagePing) Reset ¶
func (m *MessagePing) Reset()
func (*MessagePing) String ¶
func (m *MessagePing) String() string
func (*MessagePing) XXX_DiscardUnknown ¶
func (m *MessagePing) XXX_DiscardUnknown()
func (*MessagePing) XXX_Marshal ¶
func (m *MessagePing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessagePing) XXX_Merge ¶
func (m *MessagePing) XXX_Merge(src proto.Message)
func (*MessagePing) XXX_Size ¶
func (m *MessagePing) XXX_Size() int
func (*MessagePing) XXX_Unmarshal ¶
func (m *MessagePing) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.