Documentation ¶
Overview ¶
Package esports implements an API for interacting with lolesports.
Use the NewClient() constructor to construct a client, and call the client methods to interact with lolesports. Rate limiting is not implemented.
Index ¶
- type Client
- func (c *Client) DisableLogs()
- func (c *Client) EnableLogs()
- func (c Client) GetGameStats(ctx context.Context, region region.Region, gameID int64, gameHash string) (*apiclient.Match, error)
- func (c Client) GetGameTimeline(ctx context.Context, region region.Region, gameID int64, gameHash string) (*apiclient.MatchTimeline, error)
- func (c Client) GetHighlanderMatchDetails(ctx context.Context, tournamentID string, matchID string) (*HighlanderMatchDetails, error)
- func (c Client) GetLeagues(ctx context.Context, id league.League) (*Leagues, error)
- func (c Client) GetLeaguesBySlug(ctx context.Context, slug string) (*Leagues, error)
- type HighlanderMatchDetails
- type HighlanderMatchDetails_GameIDMapping
- type Leagues
- type Leagues_HighlanderRecord
- type Leagues_HighlanderTournament
- type Leagues_HighlanderTournament_Bracket
- type Leagues_HighlanderTournament_Bracket_Match
- type Leagues_HighlanderTournament_Bracket_Match_Game
- type Leagues_League
- type Leagues_Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DisableLogs ¶
func (c *Client) DisableLogs()
func (*Client) EnableLogs ¶
func (c *Client) EnableLogs()
func (Client) GetGameStats ¶
func (Client) GetGameTimeline ¶
func (Client) GetHighlanderMatchDetails ¶
func (Client) GetLeagues ¶
type HighlanderMatchDetails ¶
type HighlanderMatchDetails struct {
GameIDMappings []HighlanderMatchDetails_GameIDMapping
}
type Leagues ¶
type Leagues struct { Leagues []Leagues_League HighlanderTournaments []Leagues_HighlanderTournament HighlanderRecords []Leagues_HighlanderRecord Teams []Leagues_Team }
type Leagues_HighlanderTournament ¶
type Leagues_HighlanderTournament struct { ID string Title string Description string LeagueReference string // RosteringStrategy // Queues // Rosters Published bool // Breakpoints Brackets map[string]Leagues_HighlanderTournament_Bracket // LiveMatches StartDate string // YYYY-MM-DD EndDate string // YYYY-MM-DD LeagueID string PlatformIDs []string GameIDs []string League string }
type Leagues_League ¶
type Leagues_Team ¶
type Leagues_Team struct { ID int64 Slug string Name string GUID string TeamPhotoURL string LogoURL string Acroynm string HomeLeague string AltLogoURL string CreatedAt string // YYYY-MM-DDT18:34:47.000Z UpdatedAt string Bios map[language.Language]string // ForeignIDs Players []int64 Starters []int64 Subs []int64 }
Directories ¶
Path | Synopsis |
---|---|
Package cache saves data from the esports API into BigQuery.
|
Package cache saves data from the esports API into BigQuery. |
cmd
|
|
Package tournaments defines highlander tournament constants.
|
Package tournaments defines highlander tournament constants. |
Click to show internal directories.
Click to hide internal directories.