Documentation ¶
Index ¶
- type PgEventStorage
- func (pges *PgEventStorage) DeleteEventById(ctx context.Context, id string) error
- func (pges *PgEventStorage) GetEventById(ctx context.Context, id string) (*models.Event, error)
- func (pges *PgEventStorage) GetEventsByOwnerStartDate(ctx context.Context, owner string, startTime time.Time) []*models.Event
- func (pges *PgEventStorage) SaveEvent(ctx context.Context, event *models.Event) error
- func (pges *PgEventStorage) UpdateEventById(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
}
implements domain.interfaces.EventStorage
func NewPgEventStorage ¶
func NewPgEventStorage(dsn string) (*PgEventStorage, error)
func (*PgEventStorage) DeleteEventById ¶ added in v0.0.2
func (pges *PgEventStorage) DeleteEventById(ctx context.Context, id string) error
func (*PgEventStorage) GetEventById ¶
func (*PgEventStorage) GetEventsByOwnerStartDate ¶
func (*PgEventStorage) UpdateEventById ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.