Documentation
¶
Index ¶
- type PsqlEventStorage
- func (p PsqlEventStorage) Create(ctx context.Context, event *models.Event) (*models.Event, error)
- func (p PsqlEventStorage) Delete(ctx context.Context, eventId uint64) (bool, error)
- func (p PsqlEventStorage) GetByDate(ctx context.Context, date time.Time) ([]models.Event, error)
- func (p PsqlEventStorage) Read(ctx context.Context, eventID uint64) (*models.Event, error)
- func (p PsqlEventStorage) Update(ctx context.Context, event *models.Event, eventId uint64) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PsqlEventStorage ¶
func NewPsqlRepository ¶
func NewPsqlRepository(c *sqlx.DB) *PsqlEventStorage
Click to show internal directories.
Click to hide internal directories.