package
Version:
v0.0.0-...-63692ed
Opens a new window with list of versions in this module.
Published: Jan 3, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MakeHandler to serve game routes
type NewGameRequest struct {
Cookies []*http.Cookie `json:"cookies"`
}
NewGameRequest for a new game
type Response struct {
Game game.Game `json:"game"`
Tally Tally `json:"tally"`
}
Response returns a new game and tally
Service represent a hangman game interaction
NewLoggingService returns a new instance to the logging service
NewService creates a game service
type Tally struct {
Status game.Status `json:"status"`
TurnsLeft int `json:"turns_left"`
Letters string `json:"letters"`
}
Tally tracks the user score
Source Files
¶
Click to show internal directories.
Click to hide internal directories.