maindb

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (pges *PgEventStorage) DeleteEventsOlderDateByIdOwner(ctx context.Context, date *time.Time, owner string) (int64, error)

func (*PgEventStorage) GetEventByIdOwner added in v0.0.4

func (pges *PgEventStorage) GetEventByIdOwner(ctx context.Context, id, owner string) (*models.Event, error)

func (*PgEventStorage) GetEventsByOwnerStartDate

func (pges *PgEventStorage) GetEventsByOwnerStartDate(ctx context.Context, owner string, startTime *time.Time) ([]*models.Event, error)

func (*PgEventStorage) GetEventsCountByOwnerStartDateEndDate added in v0.0.4

func (pges *PgEventStorage) GetEventsCountByOwnerStartDateEndDate(ctx context.Context, owner string, startTime, endTime *time.Time) (int, error)

func (*PgEventStorage) GetEventsForNotification added in v0.0.6

func (pges *PgEventStorage) GetEventsForNotification(ctx context.Context, startTime time.Time, period time.Duration) ([]*models.Event, error)

func (*PgEventStorage) MarkEventNotified added in v0.0.6

func (pges *PgEventStorage) MarkEventNotified(ctx context.Context, id string) error

func (*PgEventStorage) SaveEvent

func (pges *PgEventStorage) SaveEvent(ctx context.Context, event *models.Event) error

func (*PgEventStorage) UpdateEventByIdOwner added in v0.0.4

func (pges *PgEventStorage) UpdateEventByIdOwner(ctx context.Context, id string, event *models.Event) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL