sku

package
v0.0.0-...-a470c86 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 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 Repository

type Repository interface {
	Get(c context.Context, productID string) (skus []sku, err error)

	Create(c context.Context, s sku) error

	Update(c context.Context, id string, s sku) error

	Delete(c context.Context, id string) error
}

Repository db repository

func NewRepository

func NewRepository(mdb mongodb.Provider) Repository

NewRepository returns a new repostory

Jump to

Keyboard shortcuts

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