Versions in this module Expand all Collapse all v0 v0.0.1 Aug 13, 2024 Changes in this version + type MockProductsRepo struct + func NewMockProductsRepo(ctrl *gomock.Controller) *MockProductsRepo + func (m *MockProductsRepo) CreateProduct(tx *sqlx.Tx, product products.Product) (uint64, error) + func (m *MockProductsRepo) DeleteProduct(tx *sqlx.Tx, id uint64) error + func (m *MockProductsRepo) EXPECT() *MockProductsRepoMockRecorder + func (m *MockProductsRepo) FindProduct(tx *sqlx.Tx, id uint64) (products.Product, error) + func (m *MockProductsRepo) FindProductList(tx *sqlx.Tx, username, productName string, sortBy products.SortType) ([]products.Product, error) + func (m *MockProductsRepo) UpdateProduct(tx *sqlx.Tx, newProduct products.Product) (products.Product, error) + type MockProductsRepoMockRecorder struct + func (mr *MockProductsRepoMockRecorder) CreateProduct(tx, product any) *gomock.Call + func (mr *MockProductsRepoMockRecorder) DeleteProduct(tx, id any) *gomock.Call + func (mr *MockProductsRepoMockRecorder) FindProduct(tx, id any) *gomock.Call + func (mr *MockProductsRepoMockRecorder) FindProductList(tx, username, productName, sortBy any) *gomock.Call + func (mr *MockProductsRepoMockRecorder) UpdateProduct(tx, newProduct any) *gomock.Call + type MockProductsStatistics struct + func NewMockProductsStatistics(ctrl *gomock.Controller) *MockProductsStatistics + func (m *MockProductsStatistics) EXPECT() *MockProductsStatisticsMockRecorder + func (m *MockProductsStatistics) Send(p products.Product) error + type MockProductsStatisticsMockRecorder struct + func (mr *MockProductsStatisticsMockRecorder) Send(p any) *gomock.Call