Documentation
¶
Index ¶
- func NewStore(db *sqlx.DB) clapper.EventRepo
- type Store
- func (m *Store) Delete(ctx context.Context, eventID int) error
- func (m *Store) Get(ctx context.Context, eventID int) (*clapper.Event, error)
- func (m *Store) ListMonth(ctx context.Context, year, month int) (*[]clapper.Event, error)
- func (m *Store) New(ctx context.Context, e *clapper.NewEvent, userID int) (int, error)
- func (m *Store) Update(ctx context.Context, e *clapper.Event, userID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store encapsulates our dependency
Click to show internal directories.
Click to hide internal directories.