Documentation ¶
Index ¶
- type Player
- type Store
- func (s *Store) AddPlayer(ctx context.Context, playerParam Player) (Player, error)
- func (s *Store) DeletePlayer(ctx context.Context, playerParam Player) error
- func (s *Store) EditPlayer(ctx context.Context, playerParam Player) (Player, error)
- func (s *Store) GetPlayer(ctx context.Context, playerParam Player) (Player, error)
- func (s *Store) GetPlayers(ctx context.Context) ([]Player, error)
- func (s *Store) GetPlayersTeam(ctx context.Context, teamParam team.Team) ([]Player, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` FileName null.String `db:"file_name" json:"file_name"` DateOfBirth null.Time `db:"date_of_birth" json:"date_of_birth"` Position null.String `db:"position" json:"position"` IsCaptain bool `db:"captain" json:"is_captain"` TeamID int `db:"team_id" json:"team_id"` }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores the dependencies
func (*Store) DeletePlayer ¶
func (*Store) EditPlayer ¶
Click to show internal directories.
Click to hide internal directories.