checkSchedule

package
v0.0.0-...-1c471e9 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get_schedule

func Get_schedule(url string, xRapidAPIHost string, rapidAPI_api_key string, today_string string, fixtures_data_path string)

get today's match schedule

Types

type Match

type Match struct {
	Away struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"away"`
	Date string `json:"date"`
	Home struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"home"`
	ID       int `json:"id"`
	SeriesID int `json:"series_id"`
}

type MatchData

type MatchData struct {
	Results []Match `json:"results"`
}

type MatchInfo

type MatchInfo struct {
	ID    int    `json:"id"`
	Team1 string `json:"team1"`
	Team2 string `json:"team2"`
	Date  string `json:"date"`
	Time  string `json:"time"`
}

structs //////////////////////////////////////////////////////////

func Evaluate_schedule

func Evaluate_schedule(fixtures_data_path string, ipl_series_id int, team_id int, today_string string) (int, int, int, MatchInfo, error)

evaluate today's match schedule

Jump to

Keyboard shortcuts

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