programmeSeasons

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 ProgrammeSeason

type ProgrammeSeason struct {
	Id     uint64 `json:"id"`
	Season string `json:"season"`
}

type Repo

type Repo interface {
	GetProgrammeSeasonById(id uint64) (ProgrammeSeason, error)
	ListAllProgrammesSeasons() ([]ProgrammeSeason, error)
	AddProgrammeSeason(p *ProgrammeSeason) (ProgrammeSeason, error)
	EditProgrammeSeason(p *ProgrammeSeason) (ProgrammeSeason, error)
	DeleteProgrammeSeason(id uint64) error
}

type Store

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

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddProgrammeSeason

func (m *Store) AddProgrammeSeason(p *ProgrammeSeason) error

func (*Store) DeleteProgrammeSeason

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

func (*Store) EditProgrammeSeason

func (m *Store) EditProgrammeSeason(p *ProgrammeSeason) error

func (*Store) GetProgrammeSeasonById

func (m *Store) GetProgrammeSeasonById(id uint64) (p ProgrammeSeason, err error)

func (*Store) ListAllProgrammeSeasons

func (m *Store) ListAllProgrammeSeasons() (p []ProgrammeSeason, err error)

Jump to

Keyboard shortcuts

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