event

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(db *sqlx.DB) clapper.EventRepo

NewStore creates our data store

Types

type Store

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

Store encapsulates our dependency

func (*Store) Delete

func (m *Store) Delete(ctx context.Context, eventID int) error

Delete an event by EventID

func (*Store) Get

func (m *Store) Get(ctx context.Context, eventID int) (*clapper.Event, error)

Get returns an event including the signup sheets

func (*Store) ListMonth

func (m *Store) ListMonth(ctx context.Context, year, month int) (*[]clapper.Event, error)

ListMonth Lists all event meta's for a month

func (*Store) New

func (m *Store) New(ctx context.Context, e *clapper.NewEvent, userID int) (int, error)

New creates a new event returning the event ID

func (*Store) Update

func (m *Store) Update(ctx context.Context, e *clapper.Event, userID int) error

Update an existing event

Jump to

Keyboard shortcuts

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