Documentation
¶
Index ¶
Constants ¶
View Source
const ( CricbuzzURL = "https://www.cricbuzz.com" CricbuzzMatchAPI = "https://www.cricbuzz.com/api/cricket-match/commentary/" CricbuzzMatchScorecardAPI = "https://www.cricbuzz.com/api/html/cricket-scorecard/" )
URL constants for Cricbuzz API endpoints
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the Cricbuzz API client
func (*Client) GetAllLiveMatches ¶
GetAllLiveMatches fetches all live matches from Cricbuzz
func (*Client) GetMatchInfo ¶
GetMatchInfo fetches detailed match information for a given match ID
func (*Client) GetScorecard ¶
func (c *Client) GetScorecard(matchID uint32) ([]models.MatchInningsInfo, error)
GetScorecard fetches the scorecard for a given match ID
Click to show internal directories.
Click to hide internal directories.