Discover Packages
github.com/heartles/uttt/server
socket
package
Version:
v0.0.0-...-7a66c0d
Opens a new window with list of versions in this module.
Published: Jun 8, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ErrorMessage struct {
Message string `json:"message"`
Recoverable bool `json:"recoverable"`
}
type IncomingSocketMessage struct {
Type string `json:"messageType"`
Payload json .RawMessage `json:"payload"`
RequestID int `json:"requestID"`
}
type LoginRequest struct {
LoginID string `json:"loginID"`
}
type LoginSuccess struct {
Username string `json:"username"`
PlayerID string `json:"playerID"`
Games []store .GameState `json:"games"`
}
type NewGame struct {
OpponentID string `json:"opponentID"`
}
type OutgoingSocketMessage struct {
Type string `json:"messageType"`
Payload interface{} `json:"payload"`
RequestID int `json:"requestID"`
}
type PlayMove struct {
GameID string `json:"gameID"`
Move game .Move `json:"move"`
}
type UserLookup struct {
Username string `json:"username"`
PlayerID string `json:"playerID"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.