Directories ¶
Path | Synopsis |
---|---|
Package cmd contains executable packages for the server and client ui.
|
Package cmd contains executable packages for the server and client ui. |
server
Package main starts the server after configuring it from supplied or standard arguments
|
Package main starts the server after configuring it from supplied or standard arguments |
ui
Package main initializes interactive frontend elements and runs as long as the webpage is open.
|
Package main initializes interactive frontend elements and runs as long as the webpage is open. |
Package db implements a SQL database.
|
Package db implements a SQL database. |
user
Package user contains handles the state of users.
|
Package user contains handles the state of users. |
user/bcrypt
Package bcrypt contains password hashing and checking logic for stored passwords.
|
Package bcrypt contains password hashing and checking logic for stored passwords. |
Package game contains communication structures for the game controller, lobby, and socket to use.
|
Package game contains communication structures for the game controller, lobby, and socket to use. |
board
Package board stores the tiles for a game and handles queries to read and update tiles
|
Package board stores the tiles for a game and handles queries to read and update tiles |
message
Package message contains structures to pass between the ui and server.
|
Package message contains structures to pass between the ui and server. |
player
Package player identifies game players.
|
Package player identifies game players. |
tile
Package tile contains structures that players interact with on game boards.
|
Package tile contains structures that players interact with on game boards. |
word
Package word handles checking words in the game.
|
Package word handles checking words in the game. |
go
module
|
|
Package server runs the http server with allows users to open websockets to play the game
|
Package server runs the http server with allows users to open websockets to play the game |
auth
Package auth contains code to ensure users are authorized to use the server after they have logged in.
|
Package auth contains code to ensure users are authorized to use the server after they have logged in. |
game
Package game controls the logic to run the game.
|
Package game controls the logic to run the game. |
game/lobby
Package lobby handles players connecting to games and communication between games and players
|
Package lobby handles players connecting to games and communication between games and players |
game/player
Package player controls the game for each player
|
Package player controls the game for each player |
game/socket
Package socket handles communication with a player using a websocket connection
|
Package socket handles communication with a player using a websocket connection |
game/socket/gorilla
Package gorilla implements a websocket connection by wrapping gorilla/websocket.
|
Package gorilla implements a websocket connection by wrapping gorilla/websocket. |
log
Package log provides an abstraction over log.Logger.
|
Package log provides an abstraction over log.Logger. |
log/logtest
Package logtest implements support for testing Loggers.
|
Package logtest implements support for testing Loggers. |
Package ui contains the client fror the game.
|
Package ui contains the client fror the game. |
dom
Package dom contains the javascript bindings for the site
|
Package dom contains the javascript bindings for the site |
dom/url
Package url replaces the standard net/url package for basic url operations
|
Package url replaces the standard net/url package for basic url operations |
game
Package game has the ui game logic.
|
Package game has the ui game logic. |
game/canvas
Package canvas contains the logic to draw the game.
|
Package canvas contains the logic to draw the game. |
game/lobby
Package lobby contains code to view available games and to close the websocket.
|
Package lobby contains code to view available games and to close the websocket. |
game/socket
Package socket contains the logic to communicate with the server for the game via websocket communication
|
Package socket contains the logic to communicate with the server for the game via websocket communication |
http
Package http makes XML HTTP Requests using native browser code.
|
Package http makes XML HTTP Requests using native browser code. |
log
Package log contains shared logging code
|
Package log contains shared logging code |
user
Package user contains code to create and edit users that can play games in the lobby.
|
Package user contains code to create and edit users that can play games in the lobby. |
Click to show internal directories.
Click to hide internal directories.