programmes

package
v0.0.0-...-8bc6207 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 4 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                uint64 `json:"id"`
	Name              string `json:"name"`
	FileName          string `json:"file_name"`
	DateOfProgramme   int64  `json:"date_of_programme"`
	ProgrammeSeasonId uint64 `json:"programme_season_id"`
}

type ProgrammeRepo

type ProgrammeRepo interface {
	GetProgrammeById(id uint64) (Programme, error)
	ListAllProgrammes() ([]Programme, error)
	AddProgramme(p *Programme) (Programme, error)
	EditProgramme(p *Programme) (Programme, error)
	DeleteProgramme(id uint64) error
}

type Store

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

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddProgramme

func (m *Store) AddProgramme(p *Programme) error

func (*Store) DeleteProgramme

func (m *Store) DeleteProgramme(id uint64) error

func (*Store) GetProgrammeById

func (m *Store) GetProgrammeById(id uint64) (p Programme, err error)

func (*Store) ListAllProgrammes

func (m *Store) ListAllProgrammes() (p []Programme, err error)

Jump to

Keyboard shortcuts

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