Documentation ¶
Index ¶
- type Store
- func (s *Store) AddTeam(ctx context.Context, teamParam Team) (Team, error)
- func (s *Store) DeleteTeam(ctx context.Context, teamParam Team) error
- func (s *Store) EditTeam(ctx context.Context, teamParam Team) (Team, error)
- func (s *Store) GetTeam(ctx context.Context, teamParam Team) (Team, error)
- func (s *Store) GetTeams(ctx context.Context) ([]Team, error)
- func (s *Store) GetTeamsActive(ctx context.Context) ([]Team, error)
- type Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores the dependencies
type Team ¶
type Team struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` League null.String `db:"league" json:"league"` Division null.String `db:"division" json:"division"` LeagueTable null.String `db:"league_table" json:"league_table"` Fixtures null.String `db:"fixtures" json:"fixtures"` Coach null.String `db:"coach" json:"coach"` Physio null.String `db:"physio" json:"physio"` FileName null.String `db:"file_name" json:"file_name"` IsActive bool `db:"active" json:"is_active"` IsYouth bool `db:"youth" json:"is_youth"` Ages int `db:"ages" json:"ages"` }
Click to show internal directories.
Click to hide internal directories.