Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlackCard ¶
type BlackCard struct { Id int Deck string `json:"deck"` Icon string `json:"icon"` Text string `json:"text"` Pick int `json:"pick"` }
func RemoveBlackCard ¶
type Config ¶
type Config struct {
General ConfigGeneral
}
type ConfigGeneral ¶
type ConfigGeneral struct {
Decks []string
}
type DeckData ¶
type DeckData struct { Black []BlackCard `json:"black"` White []WhiteCard `json:"white"` Metadata map[string]DeckMetadata `json:"metadata"` }
type DeckMetadata ¶
type Match ¶
type Match struct { Id int Players []*Player Jury []*Juror CreatedOn time.Time Rounds []Round State MatchState Deck *Deck }
func (*Match) GetPlayerByID ¶
func (*Match) NewBlackCard ¶
type MatchState ¶
type MatchState int
const ( MATCH_WAIT_USERS MatchState = iota MATCH_PLAYBALE MATCH_VOTING MATCH_SHOW_RESULTS MATCH_END )
type Round ¶
type Round struct { BlackCard *BlackCard Wcs map[*WhiteCard][]Juror Mutex sync.Mutex Voters []Juror }
func (*Round) GetChoices ¶
type User ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.