maindb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 5 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
}

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 (pges *PgEventStorage) GetEventById(ctx context.Context, id string) (*models.Event, error)

func (*PgEventStorage) GetEventsByOwnerStartDate

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

func (*PgEventStorage) SaveEvent

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

func (*PgEventStorage) UpdateEventById added in v0.0.2

func (pges *PgEventStorage) UpdateEventById(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