data

package
v0.0.0-...-eff0ea3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToDB

func ConnectToDB() *pg.DB

ConnectToDB initializes DB

Types

type PostgresDS

type PostgresDS struct {
	// contains filtered or unexported fields
}

PostgresDS implements datastore interfaces

func NewPostgresDS

func NewPostgresDS() *PostgresDS

NewPostgresDS constructor

func (PostgresDS) GetMatches

func (p PostgresDS) GetMatches(season string, week int) []model.Match

GetMatches returns the matches from a season/week

func (PostgresDS) GetTeam

func (p PostgresDS) GetTeam(teamABV string) model.Team

GetTeam imp

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) GetTeams

func (p PostgresDS) GetTeams() []model.Team

GetTeams imp

func (PostgresDS) SaveObject

func (p PostgresDS) SaveObject(object interface{})

SaveObject imp

func (PostgresDS) UpdateObject

func (p PostgresDS) UpdateObject(object interface{})

UpdateObject imp

Jump to

Keyboard shortcuts

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