event

package
v0.0.0-...-96f1f9d Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(db *pgxpool.Pool) *Repo

func (*Repo) AddEvent

func (r *Repo) AddEvent(ctx context.Context, event *domain.Event) error

func (*Repo) GetEvent

func (r *Repo) GetEvent(ctx context.Context, eventID int) (*domain.Event, error)

func (*Repo) GetUserEvents

func (r *Repo) GetUserEvents(ctx context.Context, userID int, fromDt, toDt time.Time) ([]*domain.Event, error)

func (*Repo) UpdateEvent

func (r *Repo) UpdateEvent(ctx context.Context, event *domain.Event) error

Jump to

Keyboard shortcuts

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