Documentation ¶
Index ¶
- type IdentityServiceClient
- type IdentityServiceServer
- type ProductRepository
- func (_m *ProductRepository) CreateProduct(ctx context.Context, product *models.Product) (*models.Product, error)
- func (_m *ProductRepository) DeleteProductByID(ctx context.Context, _a1 uuid.UUID) error
- func (_m *ProductRepository) GetAllProducts(ctx context.Context, listQuery *utils.ListQuery) (*utils.ListResult[*models.Product], error)
- func (_m *ProductRepository) GetProductById(ctx context.Context, _a1 uuid.UUID) (*models.Product, error)
- func (_m *ProductRepository) SearchProducts(ctx context.Context, searchText string, listQuery *utils.ListQuery) (*utils.ListResult[*models.Product], error)
- func (_m *ProductRepository) UpdateProduct(ctx context.Context, product *models.Product) (*models.Product, error)
- type UnsafeIdentityServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityServiceClient ¶
IdentityServiceClient is an autogenerated mock type for the IdentityServiceClient type
func NewIdentityServiceClient ¶
func NewIdentityServiceClient(t mockConstructorTestingTNewIdentityServiceClient) *IdentityServiceClient
NewIdentityServiceClient creates a new instance of IdentityServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IdentityServiceClient) GetUserById ¶
func (_m *IdentityServiceClient) GetUserById(ctx context.Context, in *identity_service.GetUserByIdReq, opts ...grpc.CallOption) (*identity_service.GetUserByIdRes, error)
GetUserById provides a mock function with given fields: ctx, in, opts
type IdentityServiceServer ¶
IdentityServiceServer is an autogenerated mock type for the IdentityServiceServer type
func NewIdentityServiceServer ¶
func NewIdentityServiceServer(t mockConstructorTestingTNewIdentityServiceServer) *IdentityServiceServer
NewIdentityServiceServer creates a new instance of IdentityServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IdentityServiceServer) GetUserById ¶
func (_m *IdentityServiceServer) GetUserById(_a0 context.Context, _a1 *identity_service.GetUserByIdReq) (*identity_service.GetUserByIdRes, error)
GetUserById provides a mock function with given fields: _a0, _a1
type ProductRepository ¶
ProductRepository is an autogenerated mock type for the ProductRepository type
func NewProductRepository ¶
func NewProductRepository(t mockConstructorTestingTNewProductRepository) *ProductRepository
NewProductRepository creates a new instance of ProductRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProductRepository) CreateProduct ¶
func (_m *ProductRepository) CreateProduct(ctx context.Context, product *models.Product) (*models.Product, error)
CreateProduct provides a mock function with given fields: ctx, product
func (*ProductRepository) DeleteProductByID ¶
DeleteProductByID provides a mock function with given fields: ctx, _a1
func (*ProductRepository) GetAllProducts ¶
func (_m *ProductRepository) GetAllProducts(ctx context.Context, listQuery *utils.ListQuery) (*utils.ListResult[*models.Product], error)
GetAllProducts provides a mock function with given fields: ctx, listQuery
func (*ProductRepository) GetProductById ¶
func (_m *ProductRepository) GetProductById(ctx context.Context, _a1 uuid.UUID) (*models.Product, error)
GetProductById provides a mock function with given fields: ctx, _a1
func (*ProductRepository) SearchProducts ¶
func (_m *ProductRepository) SearchProducts(ctx context.Context, searchText string, listQuery *utils.ListQuery) (*utils.ListResult[*models.Product], error)
SearchProducts provides a mock function with given fields: ctx, searchText, listQuery
func (*ProductRepository) UpdateProduct ¶
func (_m *ProductRepository) UpdateProduct(ctx context.Context, product *models.Product) (*models.Product, error)
UpdateProduct provides a mock function with given fields: ctx, product
type UnsafeIdentityServiceServer ¶
UnsafeIdentityServiceServer is an autogenerated mock type for the UnsafeIdentityServiceServer type
func NewUnsafeIdentityServiceServer ¶
func NewUnsafeIdentityServiceServer(t mockConstructorTestingTNewUnsafeIdentityServiceServer) *UnsafeIdentityServiceServer
NewUnsafeIdentityServiceServer creates a new instance of UnsafeIdentityServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.