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
Click to show internal directories.
Click to hide internal directories.