teams

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: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamDataStore

type TeamDataStore interface {
	GetTeam(string) model.Team //teamABV
	GetTeams() []model.Team
	GetTeamSeason(string, string) model.TeamSeason
	GetTeamSeasons(string) []model.TeamSeasonJoin
}

TeamDataStore interface

type TeamService

type TeamService interface {
	GetAllTeams() []model.Team
	GetTeam(string) model.Team
	GetTeamSeason(string, string) model.TeamSeason
	GetTeamSeasons(string) []model.TeamSeasonJoin
}

TeamService interface for team logic

type TeamServiceImp

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

TeamServiceImp implements TeamServices

func NewTeamService

func NewTeamService(dataStore TeamDataStore) TeamServiceImp

NewTeamService creates a new TeamService with the provide datastore

func (TeamServiceImp) GetAllTeams

func (t TeamServiceImp) GetAllTeams() []model.Team

GetAllTeams service

func (TeamServiceImp) GetTeam

func (t TeamServiceImp) GetTeam(teamABV string) model.Team

GetTeam service

func (TeamServiceImp) GetTeamSeason

func (t TeamServiceImp) GetTeamSeason(teamABV, season string) model.TeamSeason

GetTeamSeason returns a TeamSeason (with Team) for the teamABV and season keys

func (TeamServiceImp) GetTeamSeasons

func (t TeamServiceImp) GetTeamSeasons(season string) []model.TeamSeasonJoin

GetTeamSeasons all team seasons

Jump to

Keyboard shortcuts

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