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"` }
func NewMessageCountdown ¶
func NewMessageError ¶
func NewMessageNotice ¶
func NewMessageObjects ¶
func NewMessageObjects(objects []interface{}) Message
func NewMessageSize ¶
func NewMessageSnake ¶
type MessageCountdown ¶
type MessageCountdown uint
type MessageError ¶
type MessageError string
type MessageNotice ¶
type MessageNotice string
type MessageObjects ¶
type MessageObjects []interface{}
type MessageSize ¶
type MessageSnake ¶
type MessageSnake string
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.