types

package
v0.0.0-...-802e8cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AskQuestionRequest

type AskQuestionRequest struct {
	GameIndex     int   `json:"gameIndex"`
	VerifierIndex int   `json:"verifierIndex"`
	Code          []int `json:"code"`
}

type BinaryResponse

type BinaryResponse struct {
	Result bool `json:"result"`
}

type GetGamesResponse

type GetGamesResponse struct {
	Games [][]int `json:"games"`
}

type JoinRequest

type JoinRequest struct {
	PlayerName string `json:"playerName"`
}

type MakeGuessRequest

type MakeGuessRequest struct {
	GameIndex int   `json:"gameIndex"`
	Code      []int `json:"code"`
}

type RankRequest

type RankRequest struct {
	GameIndex int `json:"gameIndex"`
}

type RankResponse

type RankResponse struct {
	Rankings [][]*RemotePlayer `json:"rankings"`
}

type RemotePlayer

type RemotePlayer struct {
	Name string `json:"name"`
}

func (*RemotePlayer) GetPlayerName

func (p *RemotePlayer) GetPlayerName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL