maindb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 6 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) 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 (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) 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