Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type MessageType `json:"type"` Payload interface{} `json:"payload"` }
ffjson: nodecoder
func NewMessageCountdown ¶
func NewMessageError ¶
func NewMessageNotice ¶
func NewMessageObjects ¶
func NewMessageObjects(objects []interface{}) Message
func NewMessageSize ¶
func NewMessageSnake ¶
func NewMessageSnake(id world.Identifier) Message
func (*Message) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Message) MarshalJSONBuf ¶
func (j *Message) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
type MessageCountdown ¶
type MessageCountdown uint
type MessageError ¶
type MessageError string
type MessageNotice ¶
type MessageNotice string
type MessageObjects ¶
type MessageObjects []interface{}
type MessageSize ¶
ffjson: nodecoder
func (*MessageSize) MarshalJSON ¶
func (j *MessageSize) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*MessageSize) MarshalJSONBuf ¶
func (j *MessageSize) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
type MessageSnake ¶
type MessageSnake world.Identifier
type MessageType ¶
type MessageType uint8
const ( MessageTypeSize MessageType = iota MessageTypeSnake MessageTypeNotice MessageTypeError MessageTypeCountdown MessageTypeObjects )
func (MessageType) MarshalJSON ¶
func (t MessageType) MarshalJSON() ([]byte, error)
func (MessageType) String ¶
func (t MessageType) String() string
Click to show internal directories.
Click to hide internal directories.