Documentation ¶
Index ¶
- type Repository
- func (r *Repository) CreateProductContext(ctx context.Context, name string, description string) (int32, error)
- func (r *Repository) ProductContext(ctx context.Context, id int32) (*proto.Product, error)
- func (r *Repository) ProductsContext(ctx context.Context, ids *[]int32) ([]*proto.Product, error)
- func (r *Repository) UpdateProductContext(ctx context.Context, product *proto.Product) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(database *postgres.Database) *Repository
func (*Repository) CreateProductContext ¶
func (*Repository) ProductContext ¶
func (*Repository) ProductsContext ¶
func (*Repository) UpdateProductContext ¶
Click to show internal directories.
Click to hide internal directories.