maindb

package
v0.0.0-...-5a4938c Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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) DeleteEvent

func (pges *PgEventStorage) DeleteEvent(ctx context.Context, ID int64) error

DeleteEvent from maindb

func (*PgEventStorage) GetEvents

func (pges *PgEventStorage) GetEvents(ctx context.Context) ([]*models.Event, error)

GetEvents from maindb

func (*PgEventStorage) GetEventsByDay

func (pges *PgEventStorage) GetEventsByDay(ctx context.Context) ([]*models.Event, error)

GetEventsByDay from maindb

func (*PgEventStorage) GetEventsByMonth

func (pges *PgEventStorage) GetEventsByMonth(ctx context.Context) ([]*models.Event, error)

GetEventsByMonth from maindb

func (*PgEventStorage) GetEventsByWeek

func (pges *PgEventStorage) GetEventsByWeek(ctx context.Context) ([]*models.Event, error)

GetEventsByWeek from maindb

func (*PgEventStorage) SaveEvent

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

func (*PgEventStorage) UpdateEvent

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

UpdateEvent to maindb

Jump to

Keyboard shortcuts

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