Documentation ¶
Index ¶
- type PgEventStorage
- func (pges *PgEventStorage) Close(ctx context.Context)
- func (pges *PgEventStorage) DeleteEventByIdOwner(ctx context.Context, id, owner string) error
- func (pges *PgEventStorage) DeleteEventsOlderDateByIdOwner(ctx context.Context, date *time.Time, owner string) (int64, 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) GetEventsForNotification(ctx context.Context, startTime time.Time, period time.Duration) ([]*models.Event, error)
- func (pges *PgEventStorage) MarkEventNotified(ctx context.Context, id string) 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) Close ¶ added in v0.0.7
func (pges *PgEventStorage) Close(ctx context.Context)
func (*PgEventStorage) DeleteEventByIdOwner ¶ added in v0.0.4
func (pges *PgEventStorage) DeleteEventByIdOwner(ctx context.Context, id, owner string) error
func (*PgEventStorage) DeleteEventsOlderDateByIdOwner ¶ added in v0.0.8
func (*PgEventStorage) GetEventByIdOwner ¶ added in v0.0.4
func (*PgEventStorage) GetEventsByOwnerStartDate ¶
func (*PgEventStorage) GetEventsCountByOwnerStartDateEndDate ¶ added in v0.0.4
func (*PgEventStorage) GetEventsForNotification ¶ added in v0.0.6
func (*PgEventStorage) MarkEventNotified ¶ added in v0.0.6
func (pges *PgEventStorage) MarkEventNotified(ctx context.Context, id string) error
func (*PgEventStorage) UpdateEventByIdOwner ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.