package
0.9.3
Repository: https://github.com/scribble-rs/scribble.rs.git
Documentation: pkg.go.dev

# Functions

CreateLobbyData creates a ready to use LobbyData object containing data from the passed Lobby.
No description provided by the author
GetIPAddressFromRequest extracts the clients IP address from the request.
GetLobbyId returns either the lobby id from the URL or from a cookie.
GetPlayer returns the player object that matches the usersession in the supplied HTTP request and lobby.
GetPlayername either retrieves the playername from a cookie, the URL form.
GetUserSession accesses the usersession from an HTTP request and returns the session.
No description provided by the author
ParseBoolean checks whether the given value is either "true" or "false".
ParseClientsPerIPLimit checks whether the given value is an integer between the lower and upper bound of maximum clients per IP.
ParseCustomWords checks whether the given value is a string containing comma separated values (or a single word).
ParseCustomWordsPerTurn checks whether the given value is an integer between 0 and 100.
ParseDrawingTime checks whether the given value is an integer between the lower and upper bound of drawing time.
ParseLanguage checks whether the given value is part of the game.SupportedLanguages array.
ParseMaxPlayers checks whether the given value is an integer between the lower and upper bound of maximum players per lobby.
ParsePlayerName checks if the given value is a valid playername.
ParseRounds checks whether the given value is an integer between the lower and upper bound of rounds played.
No description provided by the author
No description provided by the author
SetGameplayCookies takes the players usersession and lobby id and sets them as a cookie.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
SuggestedBrushSizes is suggested brush sizes value used for Lobbydata objects.

# Structs

GameConstants are values that are lobby-independent and can't be changed via settings, neither at compile time nor at startup time.
LobbyData is the data necessary for correctly configuring a lobby.
LobbyEntry is an API object for representing a join-able public lobby.
easyjson:skip.

# Type aliases

easyjson:json.