Documentation ¶
Index ¶
- type GameRepository
- func (r GameRepository) Create(ctx context.Context, i *entity.Game) error
- func (r GameRepository) Delete(ctx context.Context, i *entity.Game) error
- func (r GameRepository) FindAllPublished(ctx context.Context) ([]entity.Game, error)
- func (r GameRepository) FindByFilter(ctx context.Context, data *repository.FindByFilterGameData) ([]entity.Game, error)
- func (r GameRepository) FindByID(ctx context.Context, id string) (*entity.Game, error)
- func (r GameRepository) FindByIDAndOwnerID(ctx context.Context, id, ownerID string) (*entity.Game, error)
- func (r GameRepository) FindByIDs(ctx context.Context, ids []string) ([]entity.Game, error)
- func (r GameRepository) FindBySKU(ctx context.Context, sku string) (*entity.Game, error)
- func (r GameRepository) FindBySlug(ctx context.Context, slug string) (*entity.Game, error)
- func (r GameRepository) FindBySlugAndOwnerID(ctx context.Context, slug, ownerID string) (*entity.Game, error)
- func (r GameRepository) Update(ctx context.Context, i *entity.Game) error
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) FindAllPublished ¶
func (GameRepository) FindByFilter ¶
func (r GameRepository) FindByFilter(ctx context.Context, data *repository.FindByFilterGameData) ([]entity.Game, error)
func (GameRepository) FindByIDAndOwnerID ¶
func (GameRepository) FindBySlug ¶
func (GameRepository) FindBySlugAndOwnerID ¶
Click to show internal directories.
Click to hide internal directories.