Documentation ¶
Overview ¶
Package server provides a REST API for playing games.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string Hangman HangmanConfig }
Config defines the main settings of the game server
func LoadConfig ¶
LoadConfig loads a config from a local file or url
type HangmanConfig ¶
HangmanConfig defines the main settings for the Hangman game
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an instance of a REST gameserver.
func (*Server) ListenAndServe ¶
ListenAndServe starts the server. This function blocks until either Shutdown is called or the process is terminated.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.