handlers

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoccerSim

type SoccerSim struct {
	TeamService  teams.TeamService
	MatchService matches.MatchService
}

SoccerSim struct

func NewSoccerSim

func NewSoccerSim() SoccerSim

NewSoccerSim constructor

func (SoccerSim) GetSeasonTeams

func (s SoccerSim) GetSeasonTeams(w http.ResponseWriter, r *http.Request)

GetSeasonTeams returns all teams from the database

func (SoccerSim) GetTeamSeason

func (s SoccerSim) GetTeamSeason(w http.ResponseWriter, r *http.Request)

GetTeamSeason returns all teams from the database

func (SoccerSim) GetTeams

func (s SoccerSim) GetTeams(w http.ResponseWriter, r *http.Request)

GetTeams returns all teams from the database

func (SoccerSim) GetWeeksMatches

func (s SoccerSim) GetWeeksMatches(w http.ResponseWriter, r *http.Request)

GetWeeksMatches returns matches for the season/week

func (SoccerSim) ScheduleSeason

func (s SoccerSim) ScheduleSeason(w http.ResponseWriter, r *http.Request)

ScheduleSeason returns all teams from the sdatabase

func (SoccerSim) SimWeeksMatches

func (s SoccerSim) SimWeeksMatches(w http.ResponseWriter, r *http.Request)

SimWeeksMatches takes a season and week and sims those matches

Source Files

  • index.go
  • matches.go
  • teams.go
  • teamseasons.go

Jump to

Keyboard shortcuts

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