Documentation ¶
Index ¶
- type PostgresSupplementRepository
- func (r *PostgresSupplementRepository) Create(ctx context.Context, s supplement.Supplement) error
- func (r *PostgresSupplementRepository) Delete(ctx context.Context, s supplement.Supplement) error
- func (r *PostgresSupplementRepository) FindByGtin(ctx context.Context, gtin string) (*supplement.Supplement, error)
- func (r *PostgresSupplementRepository) ListAll(ctx context.Context) ([]supplement.Supplement, error)
- func (r *PostgresSupplementRepository) Update(ctx context.Context, s supplement.Supplement) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresSupplementRepository ¶
type PostgresSupplementRepository struct {
// contains filtered or unexported fields
}
func NewSupplementRepository ¶
func NewSupplementRepository(db *pgxpool.Pool) *PostgresSupplementRepository
func (*PostgresSupplementRepository) Create ¶
func (r *PostgresSupplementRepository) Create(ctx context.Context, s supplement.Supplement) error
func (*PostgresSupplementRepository) Delete ¶
func (r *PostgresSupplementRepository) Delete(ctx context.Context, s supplement.Supplement) error
func (*PostgresSupplementRepository) FindByGtin ¶
func (r *PostgresSupplementRepository) FindByGtin(ctx context.Context, gtin string) (*supplement.Supplement, error)
func (*PostgresSupplementRepository) ListAll ¶
func (r *PostgresSupplementRepository) ListAll(ctx context.Context) ([]supplement.Supplement, error)
func (*PostgresSupplementRepository) Update ¶
func (r *PostgresSupplementRepository) Update(ctx context.Context, s supplement.Supplement) error
Click to show internal directories.
Click to hide internal directories.