Documentation
¶
Index ¶
- func CreateGame(gameURL string, public, protected bool, config any) (gameID, joinSecret string, err error)
- func CreatePlayer(gameURL, gameID, username, joinSecret string) (playerID, playerSecret string, err error)
- func FetchCGEFile(gameURL string) (io.ReadCloser, error)
- func FetchPlayers(gameURL, gameID string) (map[string]string, error)
- func FetchUsername(gameURL, gameID, playerID string) (string, error)
- type Game
- type GameInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGame ¶
func CreatePlayer ¶
func FetchCGEFile ¶
func FetchCGEFile(gameURL string) (io.ReadCloser, error)
func FetchUsername ¶
Types ¶
type Game ¶
type GameInfo ¶
type GameInfo struct { Name string `json:"name"` CGVersion versions.Version `json:"cg_version"` DisplayName string `json:"display_name,omitempty"` Description string `json:"description,omitempty"` Version string `json:"version,omitempty"` RepositoryURL string `json:"repository_url,omitempty"` }
func FetchGameInfo ¶
Click to show internal directories.
Click to hide internal directories.