package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jan 3, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
ListGames returns a list of all game URLs in the session store.
ListSessions returns a map of all game URLs in the session store mapped to a list of usernames.
ListUsernames returns a list of usernames for the game.
type Session struct {
GameURL string `json:"-"`
Username string `json:"-"`
GameId string `json:"game_id"`
PlayerId string `json:"player_id"`
PlayerSecret string `json:"player_secret"`
Path string `json:"-"`
}
Load a session from the session store.
func NewSession(gameURL, username, gameId, playerId, playerSecret string) Session
Remove the session from the session store.
Save the session to the session store.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.