Versions in this module Expand all Collapse all v1 v1.0.1 Oct 28, 2026 v1.0.0 Oct 26, 2026 Changes in this version + type CreateInput struct + Date time.Time + Name string + SeasonID int + type Handlers struct + func NewHandlers(svc *Service) *Handlers + func (h *Handlers) Register(g *echo.Group, guards web.Guards) + type Programme struct + DateOfProgramme time.Time + FileName string + ID int + Name string + SeasonID int + type Public struct + Date time.Time + FileURL string + ID int + Name string + Season *PublicSeason + type PublicSeason struct + ID int + Name string + type Season struct + ID int + Season string + type SeasonInput struct + Season string + type Service struct + func NewService(store store, files *upload.Files) *Service + func (s *Service) Create(ctx context.Context, in CreateInput, file *upload.File) (Public, error) + func (s *Service) CreateSeason(ctx context.Context, name string) (PublicSeason, error) + func (s *Service) Delete(ctx context.Context, id int) (Public, error) + func (s *Service) DeleteSeason(ctx context.Context, id int) (PublicSeason, error) + func (s *Service) List(ctx context.Context, seasonID int) ([]Public, error) + func (s *Service) RenameSeason(ctx context.Context, id int, name string) (PublicSeason, error) + func (s *Service) Seasons(ctx context.Context) ([]PublicSeason, error) + type Store struct + func NewProgrammeRepo(db *sqlx.DB) *Store + func (s *Store) AddProgramme(ctx context.Context, programmeParam Programme) (Programme, error) + func (s *Store) AddSeason(ctx context.Context, seasonParam Season) (Season, error) + func (s *Store) DeleteProgramme(ctx context.Context, programmeParam Programme) error + func (s *Store) DeleteSeason(ctx context.Context, seasonParam Season) error + func (s *Store) EditProgramme(ctx context.Context, programmeParam Programme) (Programme, error) + func (s *Store) EditSeason(ctx context.Context, seasonParam Season) (Season, error) + func (s *Store) GetProgramme(ctx context.Context, programmeParam Programme) (Programme, error) + func (s *Store) GetProgrammes(ctx context.Context) ([]Programme, error) + func (s *Store) GetProgrammesSeason(ctx context.Context, seasonParam Season) ([]Programme, error) + func (s *Store) GetSeason(ctx context.Context, seasonParam Season) (Season, error) + func (s *Store) GetSeasons(ctx context.Context) ([]Season, error)