Documentation
¶
Overview ¶
Package sofascore is a focused Go client for Crawlora's SofaScore endpoints.
Index ¶
- Constants
- func OperationIDs() []string
- type Client
- func (c *Client) Call(ctx context.Context, operationID string, params Params) (any, error)
- func (c *Client) Categories(ctx context.Context, params Params) (any, error)
- func (c *Client) CategoryTournaments(ctx context.Context, params Params) (any, error)
- func (c *Client) Close() error
- func (c *Client) Event(ctx context.Context, params Params) (any, error)
- func (c *Client) EventBestPlayers(ctx context.Context, params Params) (any, error)
- func (c *Client) EventComments(ctx context.Context, params Params) (any, error)
- func (c *Client) EventGraph(ctx context.Context, params Params) (any, error)
- func (c *Client) EventH2h(ctx context.Context, params Params) (any, error)
- func (c *Client) EventIncidents(ctx context.Context, params Params) (any, error)
- func (c *Client) EventLineups(ctx context.Context, params Params) (any, error)
- func (c *Client) EventOdds(ctx context.Context, params Params) (any, error)
- func (c *Client) EventPlayerStatistics(ctx context.Context, params Params) (any, error)
- func (c *Client) EventShotmap(ctx context.Context, params Params) (any, error)
- func (c *Client) EventStatistics(ctx context.Context, params Params) (any, error)
- func (c *Client) LiveEvents(ctx context.Context, params Params) (any, error)
- func (c *Client) Manager(ctx context.Context, params Params) (any, error)
- func (c *Client) ManagerEvents(ctx context.Context, params Params) (any, error)
- func (c *Client) Player(ctx context.Context, params Params) (any, error)
- func (c *Client) PlayerSeasonStatistics(ctx context.Context, params Params) (any, error)
- func (c *Client) PlayerStatisticsSeasons(ctx context.Context, params Params) (any, error)
- func (c *Client) PlayerTransfers(ctx context.Context, params Params) (any, error)
- func (c *Client) RankingTypes(ctx context.Context, params Params) (any, error)
- func (c *Client) Rankings(ctx context.Context, params Params) (any, error)
- func (c *Client) RoundEvents(ctx context.Context, params Params) (any, error)
- func (c *Client) ScheduledEvents(ctx context.Context, params Params) (any, error)
- func (c *Client) ScheduledTournaments(ctx context.Context, params Params) (any, error)
- func (c *Client) Search(ctx context.Context, params Params) (any, error)
- func (c *Client) SeasonEvents(ctx context.Context, params Params) (any, error)
- func (c *Client) Sports(ctx context.Context, params Params) (any, error)
- func (c *Client) Standings(ctx context.Context, params Params) (any, error)
- func (c *Client) Team(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamEvents(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamOfTheWeek(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamOfTheWeekPeriods(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamPlayers(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamSeasonStatistics(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamStatisticsSeasons(ctx context.Context, params Params) (any, error)
- func (c *Client) TeamTransfers(ctx context.Context, params Params) (any, error)
- func (c *Client) TournamentInfo(ctx context.Context, params Params) (any, error)
- func (c *Client) TournamentPlayerStatistics(ctx context.Context, params Params) (any, error)
- func (c *Client) TournamentRounds(ctx context.Context, params Params) (any, error)
- func (c *Client) TournamentSeasons(ctx context.Context, params Params) (any, error)
- func (c *Client) TournamentTopPlayers(ctx context.Context, params Params) (any, error)
- func (c *Client) TournamentTopTeams(ctx context.Context, params Params) (any, error)
- type Params
Constants ¶
const ( DefaultBaseURL = "https://api.crawlora.net/api/v1" Version = "0.2.0" )
const OperationCount = 43
OperationCount reports how many selected-platform operations this module exposes.
Variables ¶
This section is empty.
Functions ¶
func OperationIDs ¶
func OperationIDs() []string
OperationIDs returns the selected operation IDs in stable sorted order.
Types ¶
type Client ¶
Client calls only the operation IDs included in this platform module.
func NewClient ¶
NewClient creates a client using the supplied API key, or CRAWLORA_API_KEY when empty.
func (*Client) Categories ¶
Categories calls the sofascore-categories operation.
func (*Client) CategoryTournaments ¶
CategoryTournaments calls the sofascore-category-tournaments operation.
func (*Client) EventBestPlayers ¶
EventBestPlayers calls the sofascore-event-best-players operation.
func (*Client) EventComments ¶
EventComments calls the sofascore-event-comments operation.
func (*Client) EventGraph ¶
EventGraph calls the sofascore-event-graph operation.
func (*Client) EventIncidents ¶
EventIncidents calls the sofascore-event-incidents operation.
func (*Client) EventLineups ¶
EventLineups calls the sofascore-event-lineups operation.
func (*Client) EventPlayerStatistics ¶
EventPlayerStatistics calls the sofascore-event-player-statistics operation.
func (*Client) EventShotmap ¶
EventShotmap calls the sofascore-event-shotmap operation.
func (*Client) EventStatistics ¶
EventStatistics calls the sofascore-event-statistics operation.
func (*Client) LiveEvents ¶
LiveEvents calls the sofascore-live-events operation.
func (*Client) ManagerEvents ¶
ManagerEvents calls the sofascore-manager-events operation.
func (*Client) PlayerSeasonStatistics ¶
PlayerSeasonStatistics calls the sofascore-player-season-statistics operation.
func (*Client) PlayerStatisticsSeasons ¶
PlayerStatisticsSeasons calls the sofascore-player-statistics-seasons operation.
func (*Client) PlayerTransfers ¶
PlayerTransfers calls the sofascore-player-transfers operation.
func (*Client) RankingTypes ¶
RankingTypes calls the sofascore-ranking-types operation.
func (*Client) RoundEvents ¶
RoundEvents calls the sofascore-round-events operation.
func (*Client) ScheduledEvents ¶
ScheduledEvents calls the sofascore-scheduled-events operation.
func (*Client) ScheduledTournaments ¶
ScheduledTournaments calls the sofascore-scheduled-tournaments operation.
func (*Client) SeasonEvents ¶
SeasonEvents calls the sofascore-season-events operation.
func (*Client) TeamEvents ¶
TeamEvents calls the sofascore-team-events operation.
func (*Client) TeamOfTheWeek ¶
TeamOfTheWeek calls the sofascore-team-of-the-week operation.
func (*Client) TeamOfTheWeekPeriods ¶
TeamOfTheWeekPeriods calls the sofascore-team-of-the-week-periods operation.
func (*Client) TeamPlayers ¶
TeamPlayers calls the sofascore-team-players operation.
func (*Client) TeamSeasonStatistics ¶
TeamSeasonStatistics calls the sofascore-team-season-statistics operation.
func (*Client) TeamStatisticsSeasons ¶
TeamStatisticsSeasons calls the sofascore-team-statistics-seasons operation.
func (*Client) TeamTransfers ¶
TeamTransfers calls the sofascore-team-transfers operation.
func (*Client) TournamentInfo ¶
TournamentInfo calls the sofascore-tournament-info operation.
func (*Client) TournamentPlayerStatistics ¶
TournamentPlayerStatistics calls the sofascore-tournament-player-statistics operation.
func (*Client) TournamentRounds ¶
TournamentRounds calls the sofascore-tournament-rounds operation.
func (*Client) TournamentSeasons ¶
TournamentSeasons calls the sofascore-tournament-seasons operation.
func (*Client) TournamentTopPlayers ¶
TournamentTopPlayers calls the sofascore-tournament-top-players operation.