postgres

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameRepository

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

func New

func New(env *env.Postgres) GameRepository

func (GameRepository) Create

func (r GameRepository) Create(ctx context.Context, i *entity.Game) error

func (GameRepository) Delete

func (r GameRepository) Delete(ctx context.Context, i *entity.Game) error

func (GameRepository) FindAllPublished

func (r GameRepository) FindAllPublished(ctx context.Context) ([]entity.Game, error)

func (GameRepository) FindByFilter

func (GameRepository) FindByID

func (r GameRepository) FindByID(ctx context.Context, id string) (*entity.Game, error)

func (GameRepository) FindByIDAndOwnerID

func (r GameRepository) FindByIDAndOwnerID(ctx context.Context, id, ownerID string) (*entity.Game, error)

func (GameRepository) FindByIDs

func (r GameRepository) FindByIDs(ctx context.Context, ids []string) ([]entity.Game, error)

func (GameRepository) FindBySKU

func (r GameRepository) FindBySKU(ctx context.Context, sku string) (*entity.Game, error)

func (GameRepository) FindBySlug

func (r GameRepository) FindBySlug(ctx context.Context, slug string) (*entity.Game, error)

func (GameRepository) FindBySlugAndOwnerID

func (r GameRepository) FindBySlugAndOwnerID(ctx context.Context, slug, ownerID string) (*entity.Game, error)

func (GameRepository) Update

func (r GameRepository) Update(ctx context.Context, i *entity.Game) error

Jump to

Keyboard shortcuts

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