team

package
v0.0.0-...-7b086e4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func NewTeamRepo

func NewTeamRepo(db *sqlx.DB) *Store

NewTeamRepo stores our dependency

func (*Store) AddTeam

func (s *Store) AddTeam(ctx context.Context, teamParam Team) (Team, error)

func (*Store) DeleteTeam

func (s *Store) DeleteTeam(ctx context.Context, teamParam Team) error

func (*Store) EditTeam

func (s *Store) EditTeam(ctx context.Context, teamParam Team) (Team, error)

func (*Store) GetTeam

func (s *Store) GetTeam(ctx context.Context, teamParam Team) (Team, error)

func (*Store) GetTeams

func (s *Store) GetTeams(ctx context.Context) ([]Team, error)

func (*Store) GetTeamsActive

func (s *Store) GetTeamsActive(ctx context.Context) ([]Team, error)

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"`
}

Jump to

Keyboard shortcuts

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