Documentation
¶
Index ¶
- func ConnectToDB() *pg.DB
- type PostgresDS
- func (p PostgresDS) GetMatches(season string, week int) []model.Match
- func (p PostgresDS) GetTeam(teamABV string) model.Team
- func (p PostgresDS) GetTeamSeason(teamABV, season string) model.TeamSeason
- func (p PostgresDS) GetTeamSeasons(season string) []model.TeamSeasonJoin
- func (p PostgresDS) GetTeams() []model.Team
- func (p PostgresDS) SaveObject(object interface{})
- func (p PostgresDS) UpdateObject(object interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresDS ¶
type PostgresDS struct {
// contains filtered or unexported fields
}
PostgresDS implements datastore interfaces
func (PostgresDS) GetMatches ¶
func (p PostgresDS) GetMatches(season string, week int) []model.Match
GetMatches returns the matches from a season/week
func (PostgresDS) GetTeamSeason ¶
func (p PostgresDS) GetTeamSeason(teamABV, season string) model.TeamSeason
GetTeamSeason returns a TeamSeason with a Team object
func (PostgresDS) GetTeamSeasons ¶
func (p PostgresDS) GetTeamSeasons(season string) []model.TeamSeasonJoin
GetTeamSeasons returns all team seasons
func (PostgresDS) UpdateObject ¶
func (p PostgresDS) UpdateObject(object interface{})
UpdateObject imp
Click to show internal directories.
Click to hide internal directories.