Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PayloadName defines the name of the chat payload.
PayloadName = "chat"
)
Variables ¶
View Source
var Type = payload.NewType(payloadType, PayloadName)
Type represents the identifier which addresses the chat payload type.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct {
From string `serix:"0,lengthPrefixType=uint32"`
To string `serix:"1,lengthPrefixType=uint32"`
Message string `serix:"2,lengthPrefixType=uint32"`
// contains filtered or unexported fields
}
Payload represents the chat payload type.
func FromBytes ¶
FromBytes parses the marshaled version of a Payload into a Go object. It either returns a new Payload or fills an optionally provided Payload with the parsed information.
func NewPayload ¶
NewPayload creates a new chat payload.
Click to show internal directories.
Click to hide internal directories.