Documentation ¶
Index ¶
- func PrepareQuery(query string, variables map[string]interface{}) map[string]interface{}
- type Authorizations
- type Client
- func (c *Client) GetListGroups(slug string) ([]PGS, error)
- func (c *Client) GetPagesCount(phaseGroupID int64) (int, error)
- func (c *Client) GetPhaseGroupState(phaseGroupID int64) (State, error)
- func (c *Client) GetSets(phaseGroupID int64, page int, perPage int) ([]Nodes, error)
- func (c *Client) GetTournament(tourneySlug string) (Tournament, error)
- func (c *Client) RunQuery(query []byte) ([]byte, error)
- type ConnectedAccounts
- type DataEvent
- type DataPhaseGroup
- type DataPhaseGroupState
- type DataTournament
- type Entrant
- type Errors
- type Event
- type Extensions
- type FailedCall
- type Locations
- type Nodes
- type PGS
- type PGState
- type PageInfo
- type Participants
- type PhaseGroup
- type RawPagesDataCount
- type RawPhaseGroupData
- type RawPhaseGroupStateData
- type RawPhaseGroupsData
- type RawTournamentData
- type Sets
- type Slots
- type State
- type StateEvent
- type Streamer
- type Tekken8
- type Tournament
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareQuery ¶
Types ¶
type Authorizations ¶
type Authorizations struct {
Discord string `json:"externalUsername"`
}
type Client ¶
func (*Client) GetPhaseGroupState ¶
func (*Client) GetTournament ¶
func (c *Client) GetTournament(tourneySlug string) (Tournament, error)
type ConnectedAccounts ¶
type ConnectedAccounts struct {
Tekken Tekken8 `json:"tekken"`
}
type DataPhaseGroup ¶
type DataPhaseGroup struct {
PhaseGroup PhaseGroup `json:"phaseGroup"`
}
type DataPhaseGroupState ¶
type DataPhaseGroupState struct {
PhaseGroup PGState `json:"phaseGroup"`
}
type DataTournament ¶
type DataTournament struct {
Tournament Tournament `json:"tournament"`
}
type Entrant ¶
type Entrant struct { Id int64 `json:"id"` Participants []Participants `json:"participants"` }
Player in tournament
type Errors ¶
type Errors struct { Message string `json:"message"` Path []string `json:"path"` Locations []Locations `json:"locations"` Extensions Extensions `json:"extensions"` }
type Event ¶
type Event struct { Id int64 `json:"id"` Name string `json:"name"` State StateEvent `json:"state"` PhaseGroups []PGS `json:"phaseGroups"` }
type Extensions ¶
type Extensions struct {
Category string `json:"category"`
}
type FailedCall ¶
type Nodes ¶
type Nodes struct { Id int64 `json:"id"` State State `json:"state"` Stream Streamer `json:"stream"` Slots []Slots `json:"slots"` }
Information about Set
type Participants ¶
type Participants struct { GamerTag string `json:"gamerTag"` ConnectedAccounts ConnectedAccounts `json:"connectedAccounts"` User User `json:"user"` }
type PhaseGroup ¶
Group(Phase)
type RawPagesDataCount ¶
type RawPagesDataCount struct { Data DataPhaseGroup `json:"data"` Errors []Errors `json:"errors"` }
type RawPhaseGroupData ¶
type RawPhaseGroupData struct { Data DataPhaseGroup `json:"data"` Errors []Errors `json:"errors"` }
type RawPhaseGroupStateData ¶
type RawPhaseGroupStateData struct { Data DataPhaseGroupState `json:"data"` Errors []Errors `json:"errors"` }
type RawPhaseGroupsData ¶
type RawTournamentData ¶
type RawTournamentData struct { Data DataTournament `json:"data"` Errors []Errors `json:"errors"` }
type StateEvent ¶
type StateEvent string
const ( Created StateEvent = "CREATED" Active StateEvent = "ACTIVE" Completed StateEvent = "COMPLETED" )
type Tournament ¶
type User ¶
type User struct {
Authorizations []Authorizations `json:"authorizations"`
}
Click to show internal directories.
Click to hide internal directories.