Documentation ¶
Index ¶
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetId() uint32
- func (m *Message) GetPayload() []byte
- func (m *Message) GetSessionID() uint64
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // 消息 id Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息负载 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // session id SessionID uint64 `protobuf:"varint,3,opt,name=sessionID,proto3" json:"sessionID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetPayload ¶
func (*Message) GetSessionID ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.