cricbuzz

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 9 Imported by: 0

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 NewClient

func NewClient() *Client

NewClient initializes a new Cricbuzz API client

func (*Client) GetAllLiveMatches

func (c *Client) GetAllLiveMatches() ([]models.MatchInfo, error)

GetAllLiveMatches fetches all live matches from Cricbuzz

func (*Client) GetMatchInfo

func (c *Client) GetMatchInfo(matchID uint32) (models.MatchInfo, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL