repository

package
v0.0.0-...-20dc1fd Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Products

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

func NewProducts

func NewProducts(db *mongo.Database) *Products

func (*Products) GetByName

func (r *Products) GetByName(ctx context.Context, name string) (product.Product, error)

func (*Products) Insert

func (r *Products) Insert(ctx context.Context, item product.Product) error

func (*Products) List

func (*Products) UpdateByName

func (r *Products) UpdateByName(ctx context.Context, prod product.Product) error

Jump to

Keyboard shortcuts

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