Documentation ¶
Index ¶
- type Store
- func (s *Store) AddWhatsOn(ctx context.Context, whatsOnParam WhatsOn) (WhatsOn, error)
- func (s *Store) DeleteWhatsOn(ctx context.Context, whatsOnParam WhatsOn) error
- func (s *Store) EditWhatsOn(ctx context.Context, whatsOnParam WhatsOn) (WhatsOn, error)
- func (s *Store) GetWhatsOn(ctx context.Context) ([]WhatsOn, error)
- func (s *Store) GetWhatsOnArticle(ctx context.Context, whatsOnParam WhatsOn) (WhatsOn, error)
- func (s *Store) GetWhatsOnFuture(ctx context.Context) ([]WhatsOn, error)
- func (s *Store) GetWhatsOnLatest(ctx context.Context) (WhatsOn, error)
- func (s *Store) GetWhatsOnPast(ctx context.Context) ([]WhatsOn, error)
- type WhatsOn
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
}
Store stores the dependencies
func (*Store) AddWhatsOn ¶
func (*Store) DeleteWhatsOn ¶
func (*Store) EditWhatsOn ¶
func (*Store) GetWhatsOnArticle ¶
func (*Store) GetWhatsOnFuture ¶
func (*Store) GetWhatsOnLatest ¶
type WhatsOn ¶
type WhatsOn struct { ID int `db:"id" json:"id"` Title string `db:"title" json:"title"` FileName null.String `db:"file_name" json:"file_name"` Content null.String `db:"content" json:"content"` Date time.Time `db:"date" json:"date"` DateOfEvent time.Time `db:"date_of_event" json:"date_of_event"` }
WhatsOn represents relevant whatsOn fields
Click to show internal directories.
Click to hide internal directories.