Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoRepository ¶
Types ¶
type CacheRepository ¶
type Repository ¶
type Repository interface { CreateProduct(ctx context.Context, product *models.Product) (*models.Product, error) UpdateProduct(ctx context.Context, product *models.Product) (*models.Product, error) DeleteProduct(ctx context.Context, uuid uuid.UUID) error GetProductById(ctx context.Context, uuid uuid.UUID) (*models.Product, error) Search(ctx context.Context, search string, pagination *utils.Pagination) (*models.ProductsList, error) }
Click to show internal directories.
Click to hide internal directories.