programme

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 Programme

type Programme struct {
	ID              int       `db:"id" json:"id"`
	Name            string    `db:"name" json:"name"`
	FileName        string    `db:"file_name" json:"file_name"`
	DateOfProgramme time.Time `db:"date_of_programme" json:"date_of_programme"`
	SeasonID        int       `db:"programme_season_id" json:"season_id"`
}

type Season

type Season struct {
	ID     int    `db:"id" json:"id"`
	Season string `db:"season" json:"season"`
}

type Store

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

Store stores the dependencies

func NewProgrammeRepo

func NewProgrammeRepo(db *sqlx.DB) *Store

NewProgrammeRepo stores our dependency

func (*Store) AddProgramme

func (s *Store) AddProgramme(ctx context.Context, programmeParam Programme) (Programme, error)

func (*Store) AddSeason

func (s *Store) AddSeason(ctx context.Context, seasonParam Season) (Season, error)

func (*Store) DeleteProgramme

func (s *Store) DeleteProgramme(ctx context.Context, programmeParam Programme) error

func (*Store) DeleteSeason

func (s *Store) DeleteSeason(ctx context.Context, seasonParam Season) error

func (*Store) EditProgramme

func (s *Store) EditProgramme(ctx context.Context, programmeParam Programme) (Programme, error)

func (*Store) EditSeason

func (s *Store) EditSeason(ctx context.Context, seasonParam Season) (Season, error)

func (*Store) GetProgramme

func (s *Store) GetProgramme(ctx context.Context, programmeParam Programme) (Programme, error)

func (*Store) GetProgrammes

func (s *Store) GetProgrammes(ctx context.Context) ([]Programme, error)

func (*Store) GetProgrammesSeason

func (s *Store) GetProgrammesSeason(ctx context.Context, seasonParam Season) ([]Programme, error)

func (*Store) GetSeason

func (s *Store) GetSeason(ctx context.Context, seasonParam Season) (Season, error)

func (*Store) GetSeasons

func (s *Store) GetSeasons(ctx context.Context) ([]Season, error)

Jump to

Keyboard shortcuts

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