product

package
v0.0.0-...-241bfea Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (r *Repository) CreateProductContext(
	ctx context.Context,
	name string,
	description string,
) (int32, error)

func (*Repository) ProductContext

func (r *Repository) ProductContext(
	ctx context.Context,
	id int32,
) (*proto.Product, error)

func (*Repository) ProductsContext

func (r *Repository) ProductsContext(
	ctx context.Context,
	ids *[]int32,
) ([]*proto.Product, error)

func (*Repository) UpdateProductContext

func (r *Repository) UpdateProductContext(
	ctx context.Context,
	product *proto.Product,
) error

Jump to

Keyboard shortcuts

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