Documentation ¶
Index ¶
- type PgEventStorage
- func (pges *PgEventStorage) DeleteEventByIdOwner(ctx context.Context, id, owner string) error
- func (pges *PgEventStorage) GetEventByIdOwner(ctx context.Context, id, owner string) (*models.Event, error)
- func (pges *PgEventStorage) GetEventsByOwnerStartDate(ctx context.Context, owner string, startTime *time.Time) ([]*models.Event, error)
- func (pges *PgEventStorage) GetEventsCountByOwnerStartDateEndDate(ctx context.Context, owner string, startTime, endTime *time.Time) (int, error)
- func (pges *PgEventStorage) SaveEvent(ctx context.Context, event *models.Event) error
- func (pges *PgEventStorage) UpdateEventByIdOwner(ctx context.Context, id string, event *models.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgEventStorage ¶
type PgEventStorage struct {
// contains filtered or unexported fields
}
func NewPgEventStorage ¶
func NewPgEventStorage(dsn string) (*PgEventStorage, error)
func (*PgEventStorage) DeleteEventByIdOwner ¶ added in v0.0.4
func (pges *PgEventStorage) DeleteEventByIdOwner(ctx context.Context, id, owner string) error
func (*PgEventStorage) GetEventByIdOwner ¶ added in v0.0.4
func (*PgEventStorage) GetEventsByOwnerStartDate ¶
func (*PgEventStorage) GetEventsCountByOwnerStartDateEndDate ¶ added in v0.0.4
func (*PgEventStorage) UpdateEventByIdOwner ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.