Documentation ¶
Index ¶
- Variables
- func HandleCommandsRequest(w http.ResponseWriter, req *http.Request)
- func HandleHomeRequest(w http.ResponseWriter, req *http.Request)
- func HandleMessageRequest(w http.ResponseWriter, req *http.Request)
- func HandleUserRequest(w http.ResponseWriter, req *http.Request)
- type CatanMessage
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMessage atomic.Value
GlobalMessage the threadsafe storage of the last message sent to the relay
Functions ¶
func HandleCommandsRequest ¶
func HandleCommandsRequest(w http.ResponseWriter, req *http.Request)
HandleCommandsRequest for route "/command/<command>"
func HandleHomeRequest ¶
func HandleHomeRequest(w http.ResponseWriter, req *http.Request)
HandleHomeRequest a function for when / is called
func HandleMessageRequest ¶
func HandleMessageRequest(w http.ResponseWriter, req *http.Request)
HandleMessageRequest route handler for /rolls/<roll>
func HandleUserRequest ¶
func HandleUserRequest(w http.ResponseWriter, req *http.Request)
HandleUserRequest a function for when / is called
Types ¶
type CatanMessage ¶
CatanMessage the JSON formatted message passed in the header of a POST
Click to show internal directories.
Click to hide internal directories.