Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMessageFactory ¶
type Message ¶
type Message struct { RouteType Type // route type 0-client,1-hall MessageType Type // message type 0-close,1-proto Verion uint32 // message short version SeqID uint32 // unique id, zero while notify mode Time int64 // unix time MsgID uint16 // route for locating service Data []byte // payload ProtoData protoiface.MessageV1 }
Message represents a unmarshaled message or a message which to be marshaled
func NewMessage ¶
func NewMessage(routeType Type, messageType Type, verion uint32, seqID uint32, msgID uint16, protoData protoreflect.ProtoMessage) (this *Message)
func NewMessageDirect ¶ added in v1.0.3
func NewMessageWith ¶
func (*Message) GetSecurityType ¶
func (*Message) GetSerializeType ¶
type MessageFactory ¶
type MessageFactory struct { }
func NewMessageFactory ¶
func NewMessageFactory() (this *MessageFactory)
func (*MessageFactory) GetMessage ¶
func (factory *MessageFactory) GetMessage(buf []byte) (valid bool, ret protocol.IProtocol)
Click to show internal directories.
Click to hide internal directories.