Documentation
¶
Overview ¶
for one fixture
Index ¶
- Variables
- func InitDB(cfg Config)
- type Claims
- type Config
- type CurrentGameweekResponse
- type Fixture1
- type FixtureResponse
- type FullFixtureResponse
- type FullLeagueResponse
- type FullResponseGameweek
- type FullStandingsResponse
- type Game
- type GoalsScored
- type League
- type LeagueResponse
- type Standing
- type StandingRow
- type StandingsResponse
- type Statistic
- type Status
- type Team
- type Teams
- type Ticket
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Claims ¶
type Claims struct { Role string `json:"role"` jwt.StandardClaims }
It will include the standard claims defined by the JWT specification, as well as a field for the user's role within the application.
func ParseToken ¶
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 FullLeagueResponse ¶
type FullLeagueResponse struct { Get string `json:"get"` Results int `json:"results"` Paging map[string]int `json:"paging"` Response []LeagueResponse `json:"response"` }
type FullResponseGameweek ¶
type FullResponseGameweek struct { Get string `json:"get"` Results int `json:"results"` Paging map[string]int `json:"paging"` Response []CurrentGameweekResponse `json:"response"` }
used in both current and next fixtures controller
type FullStandingsResponse ¶
type FullStandingsResponse struct { Get string `json:"get"` Results int `json:"results"` Paging map[string]int `json:"paging"` Response []StandingsResponse `json:"response"` }
type GoalsScored ¶
type LeagueResponse ¶
type LeagueResponse struct {
Team Team `json:"team"`
}
type StandingRow ¶
type StandingRow []Standing
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.