Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
ID int `json:"id"`
Data string `json:"data"`
Link string `json:"link"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
// contains filtered or unexported fields
}
func (*Message) CalculateHash ¶
func (m *Message) CalculateHash()
func (*Message) SetAuthorID ¶
type PossiblePos ¶
type PossiblePos []int
type WsMessage ¶
type WsMessage struct {
Player
// data.Command is same as Player
// data.Message not aggregated to not ignore Link field by marshaller
ID int `json:"id,omitempty"`
Hash string `json:"hash,omitempty"`
Type string `json:"msg_type,omitempty"` // Only ws thing {command|player|message}
Action string `json:"action,omitempty"` // Only ws thing {add|delete}
}
func FromCommand ¶
func FromMessage ¶
func FromPlayer ¶
Click to show internal directories.
Click to hide internal directories.