Documentation ¶
Index ¶
- func BookTicket(c *gin.Context)
- func ClearGamesTable() error
- func CurrentFixtures(c *gin.Context)
- func Fixture(c *gin.Context)
- func Home(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func NextFixtures(c *gin.Context)
- func Premium(c *gin.Context)
- func SaveGameToDatabase(fixtures []gin.H) error
- func Signup(c *gin.Context)
- func Standings(c *gin.Context)
- type CurrentGameweekResponse
- type Fixture1
- type FixtureResponse
- type FullFixtureResponse
- type FullResponseCurrentGameweek
- type FullStandingsResponse
- type Game
- type GoalsScored
- type League
- type RoundsResponse
- type Standing
- type StandingsResponse
- type Statistic
- type Status
- type Team
- type Teams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BookTicket ¶
BookTicket handles the booking of a ticket for a game
func ClearGamesTable ¶
func ClearGamesTable() error
func CurrentFixtures ¶
func NextFixtures ¶
func SaveGameToDatabase ¶
Types ¶
type CurrentGameweekResponse ¶
type CurrentGameweekResponse struct { Fixture Fixture1 `json:"fixture"` League League `json:"league"` GoalsScored GoalsScored `json:"goals"` Teams Teams `json:"teams"` }
type FixtureResponse ¶
type FullFixtureResponse ¶
type FullFixtureResponse struct { Get string `json:"get"` Errors []interface{} `json:"errors"` Results int `json:"results"` Paging map[string]int `json:"paging"` Response []FixtureResponse `json:"response"` }
type FullResponseCurrentGameweek ¶
type FullResponseCurrentGameweek struct { Get string `json:"get"` Results int `json:"results"` Paging map[string]int `json:"paging"` Response []CurrentGameweekResponse `json:"response"` }
type FullStandingsResponse ¶
type FullStandingsResponse struct { Get string `json:"get"` Results int `json:"results"` Paging map[string]int `json:"paging"` Response []StandingsResponse `json:"response"` }
standings structs
type GoalsScored ¶
type RoundsResponse ¶
type RoundsResponse struct {
Response []string `json:"response"`
}
type StandingsResponse ¶
type StandingsResponse struct {
League League `json:"league"`
}
type Statistic ¶
type Statistic struct { Type string `json:"type"` Value interface{} `json:"value"` }
structs for singular fixture
Click to show internal directories.
Click to hide internal directories.