whatsOn

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddWhatsOn

func (m *Store) AddWhatsOn(w *WhatsOn) error

func (*Store) DeleteWhatsOn

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

func (*Store) EditWhatsOn

func (m *Store) EditWhatsOn(w *WhatsOn) error

func (*Store) GetWhatsOnById

func (m *Store) GetWhatsOnById(id uint64) (w WhatsOn, err error)

func (*Store) GetWhatsOnLatest

func (m *Store) GetWhatsOnLatest() (w WhatsOn, err error)

func (*Store) ListAllWhatsOn

func (m *Store) ListAllWhatsOn() (w []WhatsOn, err error)

func (*Store) ListAllWhatsOnEventFuture

func (m *Store) ListAllWhatsOnEventFuture() (w []WhatsOn, err error)

func (*Store) ListAllWhatsOnEventPast

func (m *Store) ListAllWhatsOnEventPast() (w []WhatsOn, err error)

type WhatsOn

type WhatsOn struct {
	Id          uint64 `json:"id"`
	Title       string `json:"title"`
	FileName    string `json:"file_name,omitempty"`
	Content     string `json:"content"`
	Date        int64  `json:"date"`
	DateOfEvent int64  `json:"date_of_event"`
	Delete      bool   `json:"delete,omitempty"`
}

type WhatsOnRepo

type WhatsOnRepo interface {
	GetWhatsOnById(id uint64) (WhatsOn, error)
	GetWhatsOnLatest() (WhatsOn, error)
	ListAllWhatsOn() ([]WhatsOn, error)
	AddWhatsOn(w *WhatsOn) error
	EditWhatsOn(w *WhatsOn) error
	DeleteWhatsOn(id uint64) error
}

Jump to

Keyboard shortcuts

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