Documentation ¶
Index ¶
- type PgEventStorage
- func (pges *PgEventStorage) DeleteEvent(ctx context.Context, ID int64) error
- func (pges *PgEventStorage) GetEvents(ctx context.Context) ([]*models.Event, error)
- func (pges *PgEventStorage) GetEventsByDay(ctx context.Context) ([]*models.Event, error)
- func (pges *PgEventStorage) GetEventsByMonth(ctx context.Context) ([]*models.Event, error)
- func (pges *PgEventStorage) GetEventsByWeek(ctx context.Context) ([]*models.Event, error)
- func (pges *PgEventStorage) SaveEvent(ctx context.Context, event *models.Event) error
- func (pges *PgEventStorage) UpdateEvent(ctx context.Context, event *models.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) DeleteEvent ¶
func (pges *PgEventStorage) DeleteEvent(ctx context.Context, ID int64) error
DeleteEvent from maindb
func (*PgEventStorage) GetEventsByDay ¶
GetEventsByDay from maindb
func (*PgEventStorage) GetEventsByMonth ¶
GetEventsByMonth from maindb
func (*PgEventStorage) GetEventsByWeek ¶
GetEventsByWeek from maindb
func (*PgEventStorage) UpdateEvent ¶
func (pges *PgEventStorage) UpdateEvent(ctx context.Context, event *models.Event) (*models.Event, error)
UpdateEvent to maindb
Click to show internal directories.
Click to hide internal directories.