Documentation
¶
Index ¶
- type CancelOrderLogic
- type Cart
- func (_m *Cart) AddItem(ctx context.Context, in *cart.AddItemRequest, opts ...grpc.CallOption) (*cart.AddItemResponse, error)
- func (_m *Cart) CheckStock(ctx context.Context, in *cart.CheckStockRequest, opts ...grpc.CallOption) (*cart.CheckStockResponse, error)
- func (_m *Cart) ClearCart(ctx context.Context, in *cart.ClearCartRequest, opts ...grpc.CallOption) (*cart.ClearCartResponse, error)
- func (_m *Cart) EXPECT() *Cart_Expecter
- func (_m *Cart) GetCart(ctx context.Context, in *cart.GetCartRequest, opts ...grpc.CallOption) (*cart.GetCartResponse, error)
- func (_m *Cart) GetSelectedItems(ctx context.Context, in *cart.GetSelectedItemsRequest, opts ...grpc.CallOption) (*cart.GetSelectedItemsResponse, error)
- func (_m *Cart) RemoveItem(ctx context.Context, in *cart.RemoveItemRequest, opts ...grpc.CallOption) (*cart.RemoveItemResponse, error)
- func (_m *Cart) SelectAll(ctx context.Context, in *cart.SelectAllRequest, opts ...grpc.CallOption) (*cart.SelectAllResponse, error)
- func (_m *Cart) SelectItem(ctx context.Context, in *cart.SelectItemRequest, opts ...grpc.CallOption) (*cart.SelectItemResponse, error)
- func (_m *Cart) UnselectAll(ctx context.Context, in *cart.UnselectAllRequest, opts ...grpc.CallOption) (*cart.UnselectAllResponse, error)
- func (_m *Cart) UnselectItem(ctx context.Context, in *cart.UnselectItemRequest, opts ...grpc.CallOption) (*cart.UnselectItemResponse, error)
- func (_m *Cart) UpdateItem(ctx context.Context, in *cart.UpdateItemRequest, opts ...grpc.CallOption) (*cart.UpdateItemResponse, error)
- type Cart_AddItem_Call
- type Cart_CheckStock_Call
- type Cart_ClearCart_Call
- type Cart_Expecter
- func (_e *Cart_Expecter) AddItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_AddItem_Call
- func (_e *Cart_Expecter) CheckStock(ctx interface{}, in interface{}, opts ...interface{}) *Cart_CheckStock_Call
- func (_e *Cart_Expecter) ClearCart(ctx interface{}, in interface{}, opts ...interface{}) *Cart_ClearCart_Call
- func (_e *Cart_Expecter) GetCart(ctx interface{}, in interface{}, opts ...interface{}) *Cart_GetCart_Call
- func (_e *Cart_Expecter) GetSelectedItems(ctx interface{}, in interface{}, opts ...interface{}) *Cart_GetSelectedItems_Call
- func (_e *Cart_Expecter) RemoveItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_RemoveItem_Call
- func (_e *Cart_Expecter) SelectAll(ctx interface{}, in interface{}, opts ...interface{}) *Cart_SelectAll_Call
- func (_e *Cart_Expecter) SelectItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_SelectItem_Call
- func (_e *Cart_Expecter) UnselectAll(ctx interface{}, in interface{}, opts ...interface{}) *Cart_UnselectAll_Call
- func (_e *Cart_Expecter) UnselectItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_UnselectItem_Call
- func (_e *Cart_Expecter) UpdateItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_UpdateItem_Call
- type Cart_GetCart_Call
- type Cart_GetSelectedItems_Call
- type Cart_RemoveItem_Call
- type Cart_SelectAll_Call
- type Cart_SelectItem_Call
- type Cart_UnselectAll_Call
- type Cart_UnselectItem_Call
- type Cart_UpdateItem_Call
- type ConfirmReceivedLogic
- type CreateOrderLogic
- type CreateRefundLogic
- type GetOrderLogic
- type ListOrdersLogic
- type OrderService
- func (_m *OrderService) CancelOrder(ctx context.Context, in *order.CancelOrderRequest, opts ...grpc.CallOption) (*order.CancelOrderResponse, error)
- func (_m *OrderService) ConfirmOrder(ctx context.Context, in *order.ConfirmOrderRequest, opts ...grpc.CallOption) (*order.ConfirmOrderResponse, error)
- func (_m *OrderService) CreateOrder(ctx context.Context, in *order.CreateOrderRequest, opts ...grpc.CallOption) (*order.CreateOrderResponse, error)
- func (_m *OrderService) CreateRefund(ctx context.Context, in *order.CreateRefundRequest, opts ...grpc.CallOption) (*order.CreateRefundResponse, error)
- func (_m *OrderService) EXPECT() *OrderService_Expecter
- func (_m *OrderService) GetOrder(ctx context.Context, in *order.GetOrderRequest, opts ...grpc.CallOption) (*order.GetOrderResponse, error)
- func (_m *OrderService) GetPaymentStatus(ctx context.Context, in *order.GetPaymentStatusRequest, ...) (*order.GetPaymentStatusResponse, error)
- func (_m *OrderService) GetRefund(ctx context.Context, in *order.GetRefundRequest, opts ...grpc.CallOption) (*order.GetRefundResponse, error)
- func (_m *OrderService) ListOrders(ctx context.Context, in *order.ListOrdersRequest, opts ...grpc.CallOption) (*order.ListOrdersResponse, error)
- func (_m *OrderService) PayOrder(ctx context.Context, in *order.PayOrderRequest, opts ...grpc.CallOption) (*order.PayOrderResponse, error)
- func (_m *OrderService) ProcessRefund(ctx context.Context, in *order.ProcessRefundRequest, opts ...grpc.CallOption) (*order.ProcessRefundResponse, error)
- func (_m *OrderService) ReceiveOrder(ctx context.Context, in *order.ReceiveOrderRequest, opts ...grpc.CallOption) (*order.ReceiveOrderResponse, error)
- func (_m *OrderService) ShipOrder(ctx context.Context, in *order.ShipOrderRequest, opts ...grpc.CallOption) (*order.ShipOrderResponse, error)
- type OrderService_CancelOrder_Call
- type OrderService_ConfirmOrder_Call
- type OrderService_CreateOrder_Call
- type OrderService_CreateRefund_Call
- type OrderService_Expecter
- func (_e *OrderService_Expecter) CancelOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_CancelOrder_Call
- func (_e *OrderService_Expecter) ConfirmOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ConfirmOrder_Call
- func (_e *OrderService_Expecter) CreateOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_CreateOrder_Call
- func (_e *OrderService_Expecter) CreateRefund(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_CreateRefund_Call
- func (_e *OrderService_Expecter) GetOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_GetOrder_Call
- func (_e *OrderService_Expecter) GetPaymentStatus(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_GetPaymentStatus_Call
- func (_e *OrderService_Expecter) GetRefund(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_GetRefund_Call
- func (_e *OrderService_Expecter) ListOrders(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ListOrders_Call
- func (_e *OrderService_Expecter) PayOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_PayOrder_Call
- func (_e *OrderService_Expecter) ProcessRefund(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ProcessRefund_Call
- func (_e *OrderService_Expecter) ReceiveOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ReceiveOrder_Call
- func (_e *OrderService_Expecter) ShipOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ShipOrder_Call
- type OrderService_GetOrder_Call
- type OrderService_GetPaymentStatus_Call
- func (_c *OrderService_GetPaymentStatus_Call) Return(_a0 *order.GetPaymentStatusResponse, _a1 error) *OrderService_GetPaymentStatus_Call
- func (_c *OrderService_GetPaymentStatus_Call) Run(run func(ctx context.Context, in *order.GetPaymentStatusRequest, ...)) *OrderService_GetPaymentStatus_Call
- func (_c *OrderService_GetPaymentStatus_Call) RunAndReturn(...) *OrderService_GetPaymentStatus_Call
- type OrderService_GetRefund_Call
- type OrderService_ListOrders_Call
- type OrderService_PayOrder_Call
- type OrderService_ProcessRefund_Call
- func (_c *OrderService_ProcessRefund_Call) Return(_a0 *order.ProcessRefundResponse, _a1 error) *OrderService_ProcessRefund_Call
- func (_c *OrderService_ProcessRefund_Call) Run(...) *OrderService_ProcessRefund_Call
- func (_c *OrderService_ProcessRefund_Call) RunAndReturn(...) *OrderService_ProcessRefund_Call
- type OrderService_ReceiveOrder_Call
- type OrderService_ShipOrder_Call
- type ProductService
- func (_m *ProductService) CreateCategory(ctx context.Context, in *product.CreateCategoryRequest, ...) (*product.CreateCategoryResponse, error)
- func (_m *ProductService) CreateProduct(ctx context.Context, in *product.CreateProductRequest, opts ...grpc.CallOption) (*product.CreateProductResponse, error)
- func (_m *ProductService) CreateReview(ctx context.Context, in *product.CreateReviewRequest, opts ...grpc.CallOption) (*product.CreateReviewResponse, error)
- func (_m *ProductService) CreateSku(ctx context.Context, in *product.CreateSkuRequest, opts ...grpc.CallOption) (*product.CreateSkuResponse, error)
- func (_m *ProductService) DeleteCategory(ctx context.Context, in *product.DeleteCategoryRequest, ...) (*product.DeleteCategoryResponse, error)
- func (_m *ProductService) DeleteProduct(ctx context.Context, in *product.DeleteProductRequest, opts ...grpc.CallOption) (*product.DeleteProductResponse, error)
- func (_m *ProductService) DeleteReview(ctx context.Context, in *product.DeleteReviewRequest, opts ...grpc.CallOption) (*product.DeleteReviewResponse, error)
- func (_m *ProductService) DeleteSku(ctx context.Context, in *product.DeleteSkuRequest, opts ...grpc.CallOption) (*product.DeleteSkuResponse, error)
- func (_m *ProductService) EXPECT() *ProductService_Expecter
- func (_m *ProductService) GetCategories(ctx context.Context, in *product.Empty, opts ...grpc.CallOption) (*product.GetCategoriesResponse, error)
- func (_m *ProductService) GetCategory(ctx context.Context, in *product.GetCategoryRequest, opts ...grpc.CallOption) (*product.GetCategoryResponse, error)
- func (_m *ProductService) GetProduct(ctx context.Context, in *product.GetProductRequest, opts ...grpc.CallOption) (*product.GetProductResponse, error)
- func (_m *ProductService) GetSku(ctx context.Context, in *product.GetSkuRequest, opts ...grpc.CallOption) (*product.GetSkuResponse, error)
- func (_m *ProductService) ListCategories(ctx context.Context, in *product.ListCategoriesRequest, ...) (*product.ListCategoriesResponse, error)
- func (_m *ProductService) ListProducts(ctx context.Context, in *product.ListProductsRequest, opts ...grpc.CallOption) (*product.ListProductsResponse, error)
- func (_m *ProductService) ListReviews(ctx context.Context, in *product.ListReviewsRequest, opts ...grpc.CallOption) (*product.ListReviewsResponse, error)
- func (_m *ProductService) ListSkus(ctx context.Context, in *product.ListSkusRequest, opts ...grpc.CallOption) (*product.ListSkusResponse, error)
- func (_m *ProductService) UpdateCategory(ctx context.Context, in *product.UpdateCategoryRequest, ...) (*product.UpdateCategoryResponse, error)
- func (_m *ProductService) UpdateProduct(ctx context.Context, in *product.UpdateProductRequest, opts ...grpc.CallOption) (*product.UpdateProductResponse, error)
- func (_m *ProductService) UpdateReview(ctx context.Context, in *product.UpdateReviewRequest, opts ...grpc.CallOption) (*product.UpdateReviewResponse, error)
- func (_m *ProductService) UpdateSku(ctx context.Context, in *product.UpdateSkuRequest, opts ...grpc.CallOption) (*product.UpdateSkuResponse, error)
- type ProductService_CreateCategory_Call
- func (_c *ProductService_CreateCategory_Call) Return(_a0 *product.CreateCategoryResponse, _a1 error) *ProductService_CreateCategory_Call
- func (_c *ProductService_CreateCategory_Call) Run(run func(ctx context.Context, in *product.CreateCategoryRequest, ...)) *ProductService_CreateCategory_Call
- func (_c *ProductService_CreateCategory_Call) RunAndReturn(...) *ProductService_CreateCategory_Call
- type ProductService_CreateProduct_Call
- func (_c *ProductService_CreateProduct_Call) Return(_a0 *product.CreateProductResponse, _a1 error) *ProductService_CreateProduct_Call
- func (_c *ProductService_CreateProduct_Call) Run(...) *ProductService_CreateProduct_Call
- func (_c *ProductService_CreateProduct_Call) RunAndReturn(...) *ProductService_CreateProduct_Call
- type ProductService_CreateReview_Call
- func (_c *ProductService_CreateReview_Call) Return(_a0 *product.CreateReviewResponse, _a1 error) *ProductService_CreateReview_Call
- func (_c *ProductService_CreateReview_Call) Run(...) *ProductService_CreateReview_Call
- func (_c *ProductService_CreateReview_Call) RunAndReturn(...) *ProductService_CreateReview_Call
- type ProductService_CreateSku_Call
- type ProductService_DeleteCategory_Call
- func (_c *ProductService_DeleteCategory_Call) Return(_a0 *product.DeleteCategoryResponse, _a1 error) *ProductService_DeleteCategory_Call
- func (_c *ProductService_DeleteCategory_Call) Run(run func(ctx context.Context, in *product.DeleteCategoryRequest, ...)) *ProductService_DeleteCategory_Call
- func (_c *ProductService_DeleteCategory_Call) RunAndReturn(...) *ProductService_DeleteCategory_Call
- type ProductService_DeleteProduct_Call
- func (_c *ProductService_DeleteProduct_Call) Return(_a0 *product.DeleteProductResponse, _a1 error) *ProductService_DeleteProduct_Call
- func (_c *ProductService_DeleteProduct_Call) Run(...) *ProductService_DeleteProduct_Call
- func (_c *ProductService_DeleteProduct_Call) RunAndReturn(...) *ProductService_DeleteProduct_Call
- type ProductService_DeleteReview_Call
- func (_c *ProductService_DeleteReview_Call) Return(_a0 *product.DeleteReviewResponse, _a1 error) *ProductService_DeleteReview_Call
- func (_c *ProductService_DeleteReview_Call) Run(...) *ProductService_DeleteReview_Call
- func (_c *ProductService_DeleteReview_Call) RunAndReturn(...) *ProductService_DeleteReview_Call
- type ProductService_DeleteSku_Call
- type ProductService_Expecter
- func (_e *ProductService_Expecter) CreateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateCategory_Call
- func (_e *ProductService_Expecter) CreateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateProduct_Call
- func (_e *ProductService_Expecter) CreateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateReview_Call
- func (_e *ProductService_Expecter) CreateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateSku_Call
- func (_e *ProductService_Expecter) DeleteCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteCategory_Call
- func (_e *ProductService_Expecter) DeleteProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteProduct_Call
- func (_e *ProductService_Expecter) DeleteReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteReview_Call
- func (_e *ProductService_Expecter) DeleteSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteSku_Call
- func (_e *ProductService_Expecter) GetCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategories_Call
- func (_e *ProductService_Expecter) GetCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategory_Call
- func (_e *ProductService_Expecter) GetProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetProduct_Call
- func (_e *ProductService_Expecter) GetSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetSku_Call
- func (_e *ProductService_Expecter) ListCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListCategories_Call
- func (_e *ProductService_Expecter) ListProducts(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListProducts_Call
- func (_e *ProductService_Expecter) ListReviews(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListReviews_Call
- func (_e *ProductService_Expecter) ListSkus(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListSkus_Call
- func (_e *ProductService_Expecter) UpdateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateCategory_Call
- func (_e *ProductService_Expecter) UpdateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateProduct_Call
- func (_e *ProductService_Expecter) UpdateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateReview_Call
- func (_e *ProductService_Expecter) UpdateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateSku_Call
- type ProductService_GetCategories_Call
- func (_c *ProductService_GetCategories_Call) Return(_a0 *product.GetCategoriesResponse, _a1 error) *ProductService_GetCategories_Call
- func (_c *ProductService_GetCategories_Call) Run(run func(ctx context.Context, in *product.Empty, opts ...grpc.CallOption)) *ProductService_GetCategories_Call
- func (_c *ProductService_GetCategories_Call) RunAndReturn(...) *ProductService_GetCategories_Call
- type ProductService_GetCategory_Call
- func (_c *ProductService_GetCategory_Call) Return(_a0 *product.GetCategoryResponse, _a1 error) *ProductService_GetCategory_Call
- func (_c *ProductService_GetCategory_Call) Run(...) *ProductService_GetCategory_Call
- func (_c *ProductService_GetCategory_Call) RunAndReturn(...) *ProductService_GetCategory_Call
- type ProductService_GetProduct_Call
- type ProductService_GetSku_Call
- type ProductService_ListCategories_Call
- func (_c *ProductService_ListCategories_Call) Return(_a0 *product.ListCategoriesResponse, _a1 error) *ProductService_ListCategories_Call
- func (_c *ProductService_ListCategories_Call) Run(run func(ctx context.Context, in *product.ListCategoriesRequest, ...)) *ProductService_ListCategories_Call
- func (_c *ProductService_ListCategories_Call) RunAndReturn(...) *ProductService_ListCategories_Call
- type ProductService_ListProducts_Call
- func (_c *ProductService_ListProducts_Call) Return(_a0 *product.ListProductsResponse, _a1 error) *ProductService_ListProducts_Call
- func (_c *ProductService_ListProducts_Call) Run(...) *ProductService_ListProducts_Call
- func (_c *ProductService_ListProducts_Call) RunAndReturn(...) *ProductService_ListProducts_Call
- type ProductService_ListReviews_Call
- func (_c *ProductService_ListReviews_Call) Return(_a0 *product.ListReviewsResponse, _a1 error) *ProductService_ListReviews_Call
- func (_c *ProductService_ListReviews_Call) Run(...) *ProductService_ListReviews_Call
- func (_c *ProductService_ListReviews_Call) RunAndReturn(...) *ProductService_ListReviews_Call
- type ProductService_ListSkus_Call
- type ProductService_UpdateCategory_Call
- func (_c *ProductService_UpdateCategory_Call) Return(_a0 *product.UpdateCategoryResponse, _a1 error) *ProductService_UpdateCategory_Call
- func (_c *ProductService_UpdateCategory_Call) Run(run func(ctx context.Context, in *product.UpdateCategoryRequest, ...)) *ProductService_UpdateCategory_Call
- func (_c *ProductService_UpdateCategory_Call) RunAndReturn(...) *ProductService_UpdateCategory_Call
- type ProductService_UpdateProduct_Call
- func (_c *ProductService_UpdateProduct_Call) Return(_a0 *product.UpdateProductResponse, _a1 error) *ProductService_UpdateProduct_Call
- func (_c *ProductService_UpdateProduct_Call) Run(...) *ProductService_UpdateProduct_Call
- func (_c *ProductService_UpdateProduct_Call) RunAndReturn(...) *ProductService_UpdateProduct_Call
- type ProductService_UpdateReview_Call
- func (_c *ProductService_UpdateReview_Call) Return(_a0 *product.UpdateReviewResponse, _a1 error) *ProductService_UpdateReview_Call
- func (_c *ProductService_UpdateReview_Call) Run(...) *ProductService_UpdateReview_Call
- func (_c *ProductService_UpdateReview_Call) RunAndReturn(...) *ProductService_UpdateReview_Call
- type ProductService_UpdateSku_Call
- type User
- func (_m *User) AddAddress(ctx context.Context, in *user.AddAddressRequest, opts ...grpc.CallOption) (*user.AddAddressResponse, error)
- func (_m *User) ChangePassword(ctx context.Context, in *user.ChangePasswordRequest, opts ...grpc.CallOption) (*user.ChangePasswordResponse, error)
- func (_m *User) DeleteAddress(ctx context.Context, in *user.DeleteAddressRequest, opts ...grpc.CallOption) (*user.DeleteAddressResponse, error)
- func (_m *User) EXPECT() *User_Expecter
- func (_m *User) GetAddress(ctx context.Context, in *user.GetAddressRequest, opts ...grpc.CallOption) (*user.GetAddressResponse, error)
- func (_m *User) GetTransactions(ctx context.Context, in *user.GetTransactionsRequest, opts ...grpc.CallOption) (*user.GetTransactionsResponse, error)
- func (_m *User) GetUserAddresses(ctx context.Context, in *user.GetUserAddressesRequest, opts ...grpc.CallOption) (*user.GetUserAddressesResponse, error)
- func (_m *User) GetUserInfo(ctx context.Context, in *user.GetUserInfoRequest, opts ...grpc.CallOption) (*user.GetUserInfoResponse, error)
- func (_m *User) GetWallet(ctx context.Context, in *user.GetWalletRequest, opts ...grpc.CallOption) (*user.GetWalletResponse, error)
- func (_m *User) Login(ctx context.Context, in *user.LoginRequest, opts ...grpc.CallOption) (*user.LoginResponse, error)
- func (_m *User) Logout(ctx context.Context, in *user.LogoutRequest, opts ...grpc.CallOption) (*user.LogoutResponse, error)
- func (_m *User) RechargeWallet(ctx context.Context, in *user.RechargeWalletRequest, opts ...grpc.CallOption) (*user.RechargeWalletResponse, error)
- func (_m *User) Register(ctx context.Context, in *user.RegisterRequest, opts ...grpc.CallOption) (*user.RegisterResponse, error)
- func (_m *User) ResetPassword(ctx context.Context, in *user.ResetPasswordRequest, opts ...grpc.CallOption) (*user.ResetPasswordResponse, error)
- func (_m *User) UpdateAddress(ctx context.Context, in *user.UpdateAddressRequest, opts ...grpc.CallOption) (*user.UpdateAddressResponse, error)
- func (_m *User) UpdateUserInfo(ctx context.Context, in *user.UpdateUserInfoRequest, opts ...grpc.CallOption) (*user.UpdateUserInfoResponse, error)
- func (_m *User) WithdrawWallet(ctx context.Context, in *user.WithdrawWalletRequest, opts ...grpc.CallOption) (*user.WithdrawWalletResponse, error)
- type User_AddAddress_Call
- type User_ChangePassword_Call
- type User_DeleteAddress_Call
- type User_Expecter
- func (_e *User_Expecter) AddAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_AddAddress_Call
- func (_e *User_Expecter) ChangePassword(ctx interface{}, in interface{}, opts ...interface{}) *User_ChangePassword_Call
- func (_e *User_Expecter) DeleteAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_DeleteAddress_Call
- func (_e *User_Expecter) GetAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_GetAddress_Call
- func (_e *User_Expecter) GetTransactions(ctx interface{}, in interface{}, opts ...interface{}) *User_GetTransactions_Call
- func (_e *User_Expecter) GetUserAddresses(ctx interface{}, in interface{}, opts ...interface{}) *User_GetUserAddresses_Call
- func (_e *User_Expecter) GetUserInfo(ctx interface{}, in interface{}, opts ...interface{}) *User_GetUserInfo_Call
- func (_e *User_Expecter) GetWallet(ctx interface{}, in interface{}, opts ...interface{}) *User_GetWallet_Call
- func (_e *User_Expecter) Login(ctx interface{}, in interface{}, opts ...interface{}) *User_Login_Call
- func (_e *User_Expecter) Logout(ctx interface{}, in interface{}, opts ...interface{}) *User_Logout_Call
- func (_e *User_Expecter) RechargeWallet(ctx interface{}, in interface{}, opts ...interface{}) *User_RechargeWallet_Call
- func (_e *User_Expecter) Register(ctx interface{}, in interface{}, opts ...interface{}) *User_Register_Call
- func (_e *User_Expecter) ResetPassword(ctx interface{}, in interface{}, opts ...interface{}) *User_ResetPassword_Call
- func (_e *User_Expecter) UpdateAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_UpdateAddress_Call
- func (_e *User_Expecter) UpdateUserInfo(ctx interface{}, in interface{}, opts ...interface{}) *User_UpdateUserInfo_Call
- func (_e *User_Expecter) WithdrawWallet(ctx interface{}, in interface{}, opts ...interface{}) *User_WithdrawWallet_Call
- type User_GetAddress_Call
- type User_GetTransactions_Call
- type User_GetUserAddresses_Call
- type User_GetUserInfo_Call
- type User_GetWallet_Call
- type User_Login_Call
- type User_Logout_Call
- type User_RechargeWallet_Call
- type User_Register_Call
- type User_ResetPassword_Call
- type User_UpdateAddress_Call
- type User_UpdateUserInfo_Call
- type User_WithdrawWallet_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelOrderLogic ¶
func NewCancelOrderLogic ¶
func NewCancelOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CancelOrderLogic
func (*CancelOrderLogic) CancelOrder ¶
func (l *CancelOrderLogic) CancelOrder(req *types.CancelOrderReq) error
type Cart ¶
Cart is an autogenerated mock type for the Cart type
func NewCart ¶
NewCart creates a new instance of Cart. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Cart) AddItem ¶
func (_m *Cart) AddItem(ctx context.Context, in *cart.AddItemRequest, opts ...grpc.CallOption) (*cart.AddItemResponse, error)
AddItem provides a mock function with given fields: ctx, in, opts
func (*Cart) CheckStock ¶
func (_m *Cart) CheckStock(ctx context.Context, in *cart.CheckStockRequest, opts ...grpc.CallOption) (*cart.CheckStockResponse, error)
CheckStock provides a mock function with given fields: ctx, in, opts
func (*Cart) ClearCart ¶
func (_m *Cart) ClearCart(ctx context.Context, in *cart.ClearCartRequest, opts ...grpc.CallOption) (*cart.ClearCartResponse, error)
ClearCart provides a mock function with given fields: ctx, in, opts
func (*Cart) EXPECT ¶
func (_m *Cart) EXPECT() *Cart_Expecter
func (*Cart) GetCart ¶
func (_m *Cart) GetCart(ctx context.Context, in *cart.GetCartRequest, opts ...grpc.CallOption) (*cart.GetCartResponse, error)
GetCart provides a mock function with given fields: ctx, in, opts
func (*Cart) GetSelectedItems ¶
func (_m *Cart) GetSelectedItems(ctx context.Context, in *cart.GetSelectedItemsRequest, opts ...grpc.CallOption) (*cart.GetSelectedItemsResponse, error)
GetSelectedItems provides a mock function with given fields: ctx, in, opts
func (*Cart) RemoveItem ¶
func (_m *Cart) RemoveItem(ctx context.Context, in *cart.RemoveItemRequest, opts ...grpc.CallOption) (*cart.RemoveItemResponse, error)
RemoveItem provides a mock function with given fields: ctx, in, opts
func (*Cart) SelectAll ¶
func (_m *Cart) SelectAll(ctx context.Context, in *cart.SelectAllRequest, opts ...grpc.CallOption) (*cart.SelectAllResponse, error)
SelectAll provides a mock function with given fields: ctx, in, opts
func (*Cart) SelectItem ¶
func (_m *Cart) SelectItem(ctx context.Context, in *cart.SelectItemRequest, opts ...grpc.CallOption) (*cart.SelectItemResponse, error)
SelectItem provides a mock function with given fields: ctx, in, opts
func (*Cart) UnselectAll ¶
func (_m *Cart) UnselectAll(ctx context.Context, in *cart.UnselectAllRequest, opts ...grpc.CallOption) (*cart.UnselectAllResponse, error)
UnselectAll provides a mock function with given fields: ctx, in, opts
func (*Cart) UnselectItem ¶
func (_m *Cart) UnselectItem(ctx context.Context, in *cart.UnselectItemRequest, opts ...grpc.CallOption) (*cart.UnselectItemResponse, error)
UnselectItem provides a mock function with given fields: ctx, in, opts
func (*Cart) UpdateItem ¶
func (_m *Cart) UpdateItem(ctx context.Context, in *cart.UpdateItemRequest, opts ...grpc.CallOption) (*cart.UpdateItemResponse, error)
UpdateItem provides a mock function with given fields: ctx, in, opts
type Cart_AddItem_Call ¶
Cart_AddItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddItem'
func (*Cart_AddItem_Call) Return ¶
func (_c *Cart_AddItem_Call) Return(_a0 *cart.AddItemResponse, _a1 error) *Cart_AddItem_Call
func (*Cart_AddItem_Call) Run ¶
func (_c *Cart_AddItem_Call) Run(run func(ctx context.Context, in *cart.AddItemRequest, opts ...grpc.CallOption)) *Cart_AddItem_Call
func (*Cart_AddItem_Call) RunAndReturn ¶
func (_c *Cart_AddItem_Call) RunAndReturn(run func(context.Context, *cart.AddItemRequest, ...grpc.CallOption) (*cart.AddItemResponse, error)) *Cart_AddItem_Call
type Cart_CheckStock_Call ¶
Cart_CheckStock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckStock'
func (*Cart_CheckStock_Call) Return ¶
func (_c *Cart_CheckStock_Call) Return(_a0 *cart.CheckStockResponse, _a1 error) *Cart_CheckStock_Call
func (*Cart_CheckStock_Call) Run ¶
func (_c *Cart_CheckStock_Call) Run(run func(ctx context.Context, in *cart.CheckStockRequest, opts ...grpc.CallOption)) *Cart_CheckStock_Call
func (*Cart_CheckStock_Call) RunAndReturn ¶
func (_c *Cart_CheckStock_Call) RunAndReturn(run func(context.Context, *cart.CheckStockRequest, ...grpc.CallOption) (*cart.CheckStockResponse, error)) *Cart_CheckStock_Call
type Cart_ClearCart_Call ¶
Cart_ClearCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearCart'
func (*Cart_ClearCart_Call) Return ¶
func (_c *Cart_ClearCart_Call) Return(_a0 *cart.ClearCartResponse, _a1 error) *Cart_ClearCart_Call
func (*Cart_ClearCart_Call) Run ¶
func (_c *Cart_ClearCart_Call) Run(run func(ctx context.Context, in *cart.ClearCartRequest, opts ...grpc.CallOption)) *Cart_ClearCart_Call
func (*Cart_ClearCart_Call) RunAndReturn ¶
func (_c *Cart_ClearCart_Call) RunAndReturn(run func(context.Context, *cart.ClearCartRequest, ...grpc.CallOption) (*cart.ClearCartResponse, error)) *Cart_ClearCart_Call
type Cart_Expecter ¶
type Cart_Expecter struct {
// contains filtered or unexported fields
}
func (*Cart_Expecter) AddItem ¶
func (_e *Cart_Expecter) AddItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_AddItem_Call
AddItem is a helper method to define mock.On call
- ctx context.Context
- in *cart.AddItemRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) CheckStock ¶
func (_e *Cart_Expecter) CheckStock(ctx interface{}, in interface{}, opts ...interface{}) *Cart_CheckStock_Call
CheckStock is a helper method to define mock.On call
- ctx context.Context
- in *cart.CheckStockRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) ClearCart ¶
func (_e *Cart_Expecter) ClearCart(ctx interface{}, in interface{}, opts ...interface{}) *Cart_ClearCart_Call
ClearCart is a helper method to define mock.On call
- ctx context.Context
- in *cart.ClearCartRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) GetCart ¶
func (_e *Cart_Expecter) GetCart(ctx interface{}, in interface{}, opts ...interface{}) *Cart_GetCart_Call
GetCart is a helper method to define mock.On call
- ctx context.Context
- in *cart.GetCartRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) GetSelectedItems ¶
func (_e *Cart_Expecter) GetSelectedItems(ctx interface{}, in interface{}, opts ...interface{}) *Cart_GetSelectedItems_Call
GetSelectedItems is a helper method to define mock.On call
- ctx context.Context
- in *cart.GetSelectedItemsRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) RemoveItem ¶
func (_e *Cart_Expecter) RemoveItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_RemoveItem_Call
RemoveItem is a helper method to define mock.On call
- ctx context.Context
- in *cart.RemoveItemRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) SelectAll ¶
func (_e *Cart_Expecter) SelectAll(ctx interface{}, in interface{}, opts ...interface{}) *Cart_SelectAll_Call
SelectAll is a helper method to define mock.On call
- ctx context.Context
- in *cart.SelectAllRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) SelectItem ¶
func (_e *Cart_Expecter) SelectItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_SelectItem_Call
SelectItem is a helper method to define mock.On call
- ctx context.Context
- in *cart.SelectItemRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) UnselectAll ¶
func (_e *Cart_Expecter) UnselectAll(ctx interface{}, in interface{}, opts ...interface{}) *Cart_UnselectAll_Call
UnselectAll is a helper method to define mock.On call
- ctx context.Context
- in *cart.UnselectAllRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) UnselectItem ¶
func (_e *Cart_Expecter) UnselectItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_UnselectItem_Call
UnselectItem is a helper method to define mock.On call
- ctx context.Context
- in *cart.UnselectItemRequest
- opts ...grpc.CallOption
func (*Cart_Expecter) UpdateItem ¶
func (_e *Cart_Expecter) UpdateItem(ctx interface{}, in interface{}, opts ...interface{}) *Cart_UpdateItem_Call
UpdateItem is a helper method to define mock.On call
- ctx context.Context
- in *cart.UpdateItemRequest
- opts ...grpc.CallOption
type Cart_GetCart_Call ¶
Cart_GetCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCart'
func (*Cart_GetCart_Call) Return ¶
func (_c *Cart_GetCart_Call) Return(_a0 *cart.GetCartResponse, _a1 error) *Cart_GetCart_Call
func (*Cart_GetCart_Call) Run ¶
func (_c *Cart_GetCart_Call) Run(run func(ctx context.Context, in *cart.GetCartRequest, opts ...grpc.CallOption)) *Cart_GetCart_Call
func (*Cart_GetCart_Call) RunAndReturn ¶
func (_c *Cart_GetCart_Call) RunAndReturn(run func(context.Context, *cart.GetCartRequest, ...grpc.CallOption) (*cart.GetCartResponse, error)) *Cart_GetCart_Call
type Cart_GetSelectedItems_Call ¶
Cart_GetSelectedItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSelectedItems'
func (*Cart_GetSelectedItems_Call) Return ¶
func (_c *Cart_GetSelectedItems_Call) Return(_a0 *cart.GetSelectedItemsResponse, _a1 error) *Cart_GetSelectedItems_Call
func (*Cart_GetSelectedItems_Call) Run ¶
func (_c *Cart_GetSelectedItems_Call) Run(run func(ctx context.Context, in *cart.GetSelectedItemsRequest, opts ...grpc.CallOption)) *Cart_GetSelectedItems_Call
func (*Cart_GetSelectedItems_Call) RunAndReturn ¶
func (_c *Cart_GetSelectedItems_Call) RunAndReturn(run func(context.Context, *cart.GetSelectedItemsRequest, ...grpc.CallOption) (*cart.GetSelectedItemsResponse, error)) *Cart_GetSelectedItems_Call
type Cart_RemoveItem_Call ¶
Cart_RemoveItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveItem'
func (*Cart_RemoveItem_Call) Return ¶
func (_c *Cart_RemoveItem_Call) Return(_a0 *cart.RemoveItemResponse, _a1 error) *Cart_RemoveItem_Call
func (*Cart_RemoveItem_Call) Run ¶
func (_c *Cart_RemoveItem_Call) Run(run func(ctx context.Context, in *cart.RemoveItemRequest, opts ...grpc.CallOption)) *Cart_RemoveItem_Call
func (*Cart_RemoveItem_Call) RunAndReturn ¶
func (_c *Cart_RemoveItem_Call) RunAndReturn(run func(context.Context, *cart.RemoveItemRequest, ...grpc.CallOption) (*cart.RemoveItemResponse, error)) *Cart_RemoveItem_Call
type Cart_SelectAll_Call ¶
Cart_SelectAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectAll'
func (*Cart_SelectAll_Call) Return ¶
func (_c *Cart_SelectAll_Call) Return(_a0 *cart.SelectAllResponse, _a1 error) *Cart_SelectAll_Call
func (*Cart_SelectAll_Call) Run ¶
func (_c *Cart_SelectAll_Call) Run(run func(ctx context.Context, in *cart.SelectAllRequest, opts ...grpc.CallOption)) *Cart_SelectAll_Call
func (*Cart_SelectAll_Call) RunAndReturn ¶
func (_c *Cart_SelectAll_Call) RunAndReturn(run func(context.Context, *cart.SelectAllRequest, ...grpc.CallOption) (*cart.SelectAllResponse, error)) *Cart_SelectAll_Call
type Cart_SelectItem_Call ¶
Cart_SelectItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectItem'
func (*Cart_SelectItem_Call) Return ¶
func (_c *Cart_SelectItem_Call) Return(_a0 *cart.SelectItemResponse, _a1 error) *Cart_SelectItem_Call
func (*Cart_SelectItem_Call) Run ¶
func (_c *Cart_SelectItem_Call) Run(run func(ctx context.Context, in *cart.SelectItemRequest, opts ...grpc.CallOption)) *Cart_SelectItem_Call
func (*Cart_SelectItem_Call) RunAndReturn ¶
func (_c *Cart_SelectItem_Call) RunAndReturn(run func(context.Context, *cart.SelectItemRequest, ...grpc.CallOption) (*cart.SelectItemResponse, error)) *Cart_SelectItem_Call
type Cart_UnselectAll_Call ¶
Cart_UnselectAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnselectAll'
func (*Cart_UnselectAll_Call) Return ¶
func (_c *Cart_UnselectAll_Call) Return(_a0 *cart.UnselectAllResponse, _a1 error) *Cart_UnselectAll_Call
func (*Cart_UnselectAll_Call) Run ¶
func (_c *Cart_UnselectAll_Call) Run(run func(ctx context.Context, in *cart.UnselectAllRequest, opts ...grpc.CallOption)) *Cart_UnselectAll_Call
func (*Cart_UnselectAll_Call) RunAndReturn ¶
func (_c *Cart_UnselectAll_Call) RunAndReturn(run func(context.Context, *cart.UnselectAllRequest, ...grpc.CallOption) (*cart.UnselectAllResponse, error)) *Cart_UnselectAll_Call
type Cart_UnselectItem_Call ¶
Cart_UnselectItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnselectItem'
func (*Cart_UnselectItem_Call) Return ¶
func (_c *Cart_UnselectItem_Call) Return(_a0 *cart.UnselectItemResponse, _a1 error) *Cart_UnselectItem_Call
func (*Cart_UnselectItem_Call) Run ¶
func (_c *Cart_UnselectItem_Call) Run(run func(ctx context.Context, in *cart.UnselectItemRequest, opts ...grpc.CallOption)) *Cart_UnselectItem_Call
func (*Cart_UnselectItem_Call) RunAndReturn ¶
func (_c *Cart_UnselectItem_Call) RunAndReturn(run func(context.Context, *cart.UnselectItemRequest, ...grpc.CallOption) (*cart.UnselectItemResponse, error)) *Cart_UnselectItem_Call
type Cart_UpdateItem_Call ¶
Cart_UpdateItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateItem'
func (*Cart_UpdateItem_Call) Return ¶
func (_c *Cart_UpdateItem_Call) Return(_a0 *cart.UpdateItemResponse, _a1 error) *Cart_UpdateItem_Call
func (*Cart_UpdateItem_Call) Run ¶
func (_c *Cart_UpdateItem_Call) Run(run func(ctx context.Context, in *cart.UpdateItemRequest, opts ...grpc.CallOption)) *Cart_UpdateItem_Call
func (*Cart_UpdateItem_Call) RunAndReturn ¶
func (_c *Cart_UpdateItem_Call) RunAndReturn(run func(context.Context, *cart.UpdateItemRequest, ...grpc.CallOption) (*cart.UpdateItemResponse, error)) *Cart_UpdateItem_Call
type ConfirmReceivedLogic ¶
func NewConfirmReceivedLogic ¶
func NewConfirmReceivedLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ConfirmReceivedLogic
func (*ConfirmReceivedLogic) ConfirmReceived ¶
func (l *ConfirmReceivedLogic) ConfirmReceived(req *types.ConfirmOrderReq) error
type CreateOrderLogic ¶
func NewCreateOrderLogic ¶
func NewCreateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrderLogic
func (*CreateOrderLogic) CreateOrder ¶
func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq) (*types.Order, error)
type CreateRefundLogic ¶
func NewCreateRefundLogic ¶
func NewCreateRefundLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateRefundLogic
func (*CreateRefundLogic) CreateRefund ¶
func (l *CreateRefundLogic) CreateRefund(req *types.CreateRefundReq) (*types.RefundInfo, error)
type GetOrderLogic ¶
func NewGetOrderLogic ¶
func NewGetOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetOrderLogic
func (*GetOrderLogic) GetOrder ¶
func (l *GetOrderLogic) GetOrder(req *types.GetOrderReq) (*types.Order, error)
type ListOrdersLogic ¶
func NewListOrdersLogic ¶
func NewListOrdersLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListOrdersLogic
func (*ListOrdersLogic) ListOrders ¶
func (l *ListOrdersLogic) ListOrders(req *types.OrderListReq) (*types.OrderListResp, error)
type OrderService ¶
OrderService is an autogenerated mock type for the OrderService type
func NewOrderService ¶
func NewOrderService(t interface { mock.TestingT Cleanup(func()) }) *OrderService
NewOrderService creates a new instance of OrderService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OrderService) CancelOrder ¶
func (_m *OrderService) CancelOrder(ctx context.Context, in *order.CancelOrderRequest, opts ...grpc.CallOption) (*order.CancelOrderResponse, error)
CancelOrder provides a mock function with given fields: ctx, in, opts
func (*OrderService) ConfirmOrder ¶
func (_m *OrderService) ConfirmOrder(ctx context.Context, in *order.ConfirmOrderRequest, opts ...grpc.CallOption) (*order.ConfirmOrderResponse, error)
ConfirmOrder provides a mock function with given fields: ctx, in, opts
func (*OrderService) CreateOrder ¶
func (_m *OrderService) CreateOrder(ctx context.Context, in *order.CreateOrderRequest, opts ...grpc.CallOption) (*order.CreateOrderResponse, error)
CreateOrder provides a mock function with given fields: ctx, in, opts
func (*OrderService) CreateRefund ¶
func (_m *OrderService) CreateRefund(ctx context.Context, in *order.CreateRefundRequest, opts ...grpc.CallOption) (*order.CreateRefundResponse, error)
CreateRefund provides a mock function with given fields: ctx, in, opts
func (*OrderService) EXPECT ¶
func (_m *OrderService) EXPECT() *OrderService_Expecter
func (*OrderService) GetOrder ¶
func (_m *OrderService) GetOrder(ctx context.Context, in *order.GetOrderRequest, opts ...grpc.CallOption) (*order.GetOrderResponse, error)
GetOrder provides a mock function with given fields: ctx, in, opts
func (*OrderService) GetPaymentStatus ¶
func (_m *OrderService) GetPaymentStatus(ctx context.Context, in *order.GetPaymentStatusRequest, opts ...grpc.CallOption) (*order.GetPaymentStatusResponse, error)
GetPaymentStatus provides a mock function with given fields: ctx, in, opts
func (*OrderService) GetRefund ¶
func (_m *OrderService) GetRefund(ctx context.Context, in *order.GetRefundRequest, opts ...grpc.CallOption) (*order.GetRefundResponse, error)
GetRefund provides a mock function with given fields: ctx, in, opts
func (*OrderService) ListOrders ¶
func (_m *OrderService) ListOrders(ctx context.Context, in *order.ListOrdersRequest, opts ...grpc.CallOption) (*order.ListOrdersResponse, error)
ListOrders provides a mock function with given fields: ctx, in, opts
func (*OrderService) PayOrder ¶
func (_m *OrderService) PayOrder(ctx context.Context, in *order.PayOrderRequest, opts ...grpc.CallOption) (*order.PayOrderResponse, error)
PayOrder provides a mock function with given fields: ctx, in, opts
func (*OrderService) ProcessRefund ¶
func (_m *OrderService) ProcessRefund(ctx context.Context, in *order.ProcessRefundRequest, opts ...grpc.CallOption) (*order.ProcessRefundResponse, error)
ProcessRefund provides a mock function with given fields: ctx, in, opts
func (*OrderService) ReceiveOrder ¶
func (_m *OrderService) ReceiveOrder(ctx context.Context, in *order.ReceiveOrderRequest, opts ...grpc.CallOption) (*order.ReceiveOrderResponse, error)
ReceiveOrder provides a mock function with given fields: ctx, in, opts
func (*OrderService) ShipOrder ¶
func (_m *OrderService) ShipOrder(ctx context.Context, in *order.ShipOrderRequest, opts ...grpc.CallOption) (*order.ShipOrderResponse, error)
ShipOrder provides a mock function with given fields: ctx, in, opts
type OrderService_CancelOrder_Call ¶
OrderService_CancelOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelOrder'
func (*OrderService_CancelOrder_Call) Return ¶
func (_c *OrderService_CancelOrder_Call) Return(_a0 *order.CancelOrderResponse, _a1 error) *OrderService_CancelOrder_Call
func (*OrderService_CancelOrder_Call) Run ¶
func (_c *OrderService_CancelOrder_Call) Run(run func(ctx context.Context, in *order.CancelOrderRequest, opts ...grpc.CallOption)) *OrderService_CancelOrder_Call
func (*OrderService_CancelOrder_Call) RunAndReturn ¶
func (_c *OrderService_CancelOrder_Call) RunAndReturn(run func(context.Context, *order.CancelOrderRequest, ...grpc.CallOption) (*order.CancelOrderResponse, error)) *OrderService_CancelOrder_Call
type OrderService_ConfirmOrder_Call ¶
OrderService_ConfirmOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfirmOrder'
func (*OrderService_ConfirmOrder_Call) Return ¶
func (_c *OrderService_ConfirmOrder_Call) Return(_a0 *order.ConfirmOrderResponse, _a1 error) *OrderService_ConfirmOrder_Call
func (*OrderService_ConfirmOrder_Call) Run ¶
func (_c *OrderService_ConfirmOrder_Call) Run(run func(ctx context.Context, in *order.ConfirmOrderRequest, opts ...grpc.CallOption)) *OrderService_ConfirmOrder_Call
func (*OrderService_ConfirmOrder_Call) RunAndReturn ¶
func (_c *OrderService_ConfirmOrder_Call) RunAndReturn(run func(context.Context, *order.ConfirmOrderRequest, ...grpc.CallOption) (*order.ConfirmOrderResponse, error)) *OrderService_ConfirmOrder_Call
type OrderService_CreateOrder_Call ¶
OrderService_CreateOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrder'
func (*OrderService_CreateOrder_Call) Return ¶
func (_c *OrderService_CreateOrder_Call) Return(_a0 *order.CreateOrderResponse, _a1 error) *OrderService_CreateOrder_Call
func (*OrderService_CreateOrder_Call) Run ¶
func (_c *OrderService_CreateOrder_Call) Run(run func(ctx context.Context, in *order.CreateOrderRequest, opts ...grpc.CallOption)) *OrderService_CreateOrder_Call
func (*OrderService_CreateOrder_Call) RunAndReturn ¶
func (_c *OrderService_CreateOrder_Call) RunAndReturn(run func(context.Context, *order.CreateOrderRequest, ...grpc.CallOption) (*order.CreateOrderResponse, error)) *OrderService_CreateOrder_Call
type OrderService_CreateRefund_Call ¶
OrderService_CreateRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRefund'
func (*OrderService_CreateRefund_Call) Return ¶
func (_c *OrderService_CreateRefund_Call) Return(_a0 *order.CreateRefundResponse, _a1 error) *OrderService_CreateRefund_Call
func (*OrderService_CreateRefund_Call) Run ¶
func (_c *OrderService_CreateRefund_Call) Run(run func(ctx context.Context, in *order.CreateRefundRequest, opts ...grpc.CallOption)) *OrderService_CreateRefund_Call
func (*OrderService_CreateRefund_Call) RunAndReturn ¶
func (_c *OrderService_CreateRefund_Call) RunAndReturn(run func(context.Context, *order.CreateRefundRequest, ...grpc.CallOption) (*order.CreateRefundResponse, error)) *OrderService_CreateRefund_Call
type OrderService_Expecter ¶
type OrderService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrderService_Expecter) CancelOrder ¶
func (_e *OrderService_Expecter) CancelOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_CancelOrder_Call
CancelOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.CancelOrderRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) ConfirmOrder ¶
func (_e *OrderService_Expecter) ConfirmOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ConfirmOrder_Call
ConfirmOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.ConfirmOrderRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) CreateOrder ¶
func (_e *OrderService_Expecter) CreateOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_CreateOrder_Call
CreateOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.CreateOrderRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) CreateRefund ¶
func (_e *OrderService_Expecter) CreateRefund(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_CreateRefund_Call
CreateRefund is a helper method to define mock.On call
- ctx context.Context
- in *order.CreateRefundRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) GetOrder ¶
func (_e *OrderService_Expecter) GetOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_GetOrder_Call
GetOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.GetOrderRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) GetPaymentStatus ¶
func (_e *OrderService_Expecter) GetPaymentStatus(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_GetPaymentStatus_Call
GetPaymentStatus is a helper method to define mock.On call
- ctx context.Context
- in *order.GetPaymentStatusRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) GetRefund ¶
func (_e *OrderService_Expecter) GetRefund(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_GetRefund_Call
GetRefund is a helper method to define mock.On call
- ctx context.Context
- in *order.GetRefundRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) ListOrders ¶
func (_e *OrderService_Expecter) ListOrders(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ListOrders_Call
ListOrders is a helper method to define mock.On call
- ctx context.Context
- in *order.ListOrdersRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) PayOrder ¶
func (_e *OrderService_Expecter) PayOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_PayOrder_Call
PayOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.PayOrderRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) ProcessRefund ¶
func (_e *OrderService_Expecter) ProcessRefund(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ProcessRefund_Call
ProcessRefund is a helper method to define mock.On call
- ctx context.Context
- in *order.ProcessRefundRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) ReceiveOrder ¶
func (_e *OrderService_Expecter) ReceiveOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ReceiveOrder_Call
ReceiveOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.ReceiveOrderRequest
- opts ...grpc.CallOption
func (*OrderService_Expecter) ShipOrder ¶
func (_e *OrderService_Expecter) ShipOrder(ctx interface{}, in interface{}, opts ...interface{}) *OrderService_ShipOrder_Call
ShipOrder is a helper method to define mock.On call
- ctx context.Context
- in *order.ShipOrderRequest
- opts ...grpc.CallOption
type OrderService_GetOrder_Call ¶
OrderService_GetOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrder'
func (*OrderService_GetOrder_Call) Return ¶
func (_c *OrderService_GetOrder_Call) Return(_a0 *order.GetOrderResponse, _a1 error) *OrderService_GetOrder_Call
func (*OrderService_GetOrder_Call) Run ¶
func (_c *OrderService_GetOrder_Call) Run(run func(ctx context.Context, in *order.GetOrderRequest, opts ...grpc.CallOption)) *OrderService_GetOrder_Call
func (*OrderService_GetOrder_Call) RunAndReturn ¶
func (_c *OrderService_GetOrder_Call) RunAndReturn(run func(context.Context, *order.GetOrderRequest, ...grpc.CallOption) (*order.GetOrderResponse, error)) *OrderService_GetOrder_Call
type OrderService_GetPaymentStatus_Call ¶
OrderService_GetPaymentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPaymentStatus'
func (*OrderService_GetPaymentStatus_Call) Return ¶
func (_c *OrderService_GetPaymentStatus_Call) Return(_a0 *order.GetPaymentStatusResponse, _a1 error) *OrderService_GetPaymentStatus_Call
func (*OrderService_GetPaymentStatus_Call) Run ¶
func (_c *OrderService_GetPaymentStatus_Call) Run(run func(ctx context.Context, in *order.GetPaymentStatusRequest, opts ...grpc.CallOption)) *OrderService_GetPaymentStatus_Call
func (*OrderService_GetPaymentStatus_Call) RunAndReturn ¶
func (_c *OrderService_GetPaymentStatus_Call) RunAndReturn(run func(context.Context, *order.GetPaymentStatusRequest, ...grpc.CallOption) (*order.GetPaymentStatusResponse, error)) *OrderService_GetPaymentStatus_Call
type OrderService_GetRefund_Call ¶
OrderService_GetRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRefund'
func (*OrderService_GetRefund_Call) Return ¶
func (_c *OrderService_GetRefund_Call) Return(_a0 *order.GetRefundResponse, _a1 error) *OrderService_GetRefund_Call
func (*OrderService_GetRefund_Call) Run ¶
func (_c *OrderService_GetRefund_Call) Run(run func(ctx context.Context, in *order.GetRefundRequest, opts ...grpc.CallOption)) *OrderService_GetRefund_Call
func (*OrderService_GetRefund_Call) RunAndReturn ¶
func (_c *OrderService_GetRefund_Call) RunAndReturn(run func(context.Context, *order.GetRefundRequest, ...grpc.CallOption) (*order.GetRefundResponse, error)) *OrderService_GetRefund_Call
type OrderService_ListOrders_Call ¶
OrderService_ListOrders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOrders'
func (*OrderService_ListOrders_Call) Return ¶
func (_c *OrderService_ListOrders_Call) Return(_a0 *order.ListOrdersResponse, _a1 error) *OrderService_ListOrders_Call
func (*OrderService_ListOrders_Call) Run ¶
func (_c *OrderService_ListOrders_Call) Run(run func(ctx context.Context, in *order.ListOrdersRequest, opts ...grpc.CallOption)) *OrderService_ListOrders_Call
func (*OrderService_ListOrders_Call) RunAndReturn ¶
func (_c *OrderService_ListOrders_Call) RunAndReturn(run func(context.Context, *order.ListOrdersRequest, ...grpc.CallOption) (*order.ListOrdersResponse, error)) *OrderService_ListOrders_Call
type OrderService_PayOrder_Call ¶
OrderService_PayOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PayOrder'
func (*OrderService_PayOrder_Call) Return ¶
func (_c *OrderService_PayOrder_Call) Return(_a0 *order.PayOrderResponse, _a1 error) *OrderService_PayOrder_Call
func (*OrderService_PayOrder_Call) Run ¶
func (_c *OrderService_PayOrder_Call) Run(run func(ctx context.Context, in *order.PayOrderRequest, opts ...grpc.CallOption)) *OrderService_PayOrder_Call
func (*OrderService_PayOrder_Call) RunAndReturn ¶
func (_c *OrderService_PayOrder_Call) RunAndReturn(run func(context.Context, *order.PayOrderRequest, ...grpc.CallOption) (*order.PayOrderResponse, error)) *OrderService_PayOrder_Call
type OrderService_ProcessRefund_Call ¶
OrderService_ProcessRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessRefund'
func (*OrderService_ProcessRefund_Call) Return ¶
func (_c *OrderService_ProcessRefund_Call) Return(_a0 *order.ProcessRefundResponse, _a1 error) *OrderService_ProcessRefund_Call
func (*OrderService_ProcessRefund_Call) Run ¶
func (_c *OrderService_ProcessRefund_Call) Run(run func(ctx context.Context, in *order.ProcessRefundRequest, opts ...grpc.CallOption)) *OrderService_ProcessRefund_Call
func (*OrderService_ProcessRefund_Call) RunAndReturn ¶
func (_c *OrderService_ProcessRefund_Call) RunAndReturn(run func(context.Context, *order.ProcessRefundRequest, ...grpc.CallOption) (*order.ProcessRefundResponse, error)) *OrderService_ProcessRefund_Call
type OrderService_ReceiveOrder_Call ¶
OrderService_ReceiveOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReceiveOrder'
func (*OrderService_ReceiveOrder_Call) Return ¶
func (_c *OrderService_ReceiveOrder_Call) Return(_a0 *order.ReceiveOrderResponse, _a1 error) *OrderService_ReceiveOrder_Call
func (*OrderService_ReceiveOrder_Call) Run ¶
func (_c *OrderService_ReceiveOrder_Call) Run(run func(ctx context.Context, in *order.ReceiveOrderRequest, opts ...grpc.CallOption)) *OrderService_ReceiveOrder_Call
func (*OrderService_ReceiveOrder_Call) RunAndReturn ¶
func (_c *OrderService_ReceiveOrder_Call) RunAndReturn(run func(context.Context, *order.ReceiveOrderRequest, ...grpc.CallOption) (*order.ReceiveOrderResponse, error)) *OrderService_ReceiveOrder_Call
type OrderService_ShipOrder_Call ¶
OrderService_ShipOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShipOrder'
func (*OrderService_ShipOrder_Call) Return ¶
func (_c *OrderService_ShipOrder_Call) Return(_a0 *order.ShipOrderResponse, _a1 error) *OrderService_ShipOrder_Call
func (*OrderService_ShipOrder_Call) Run ¶
func (_c *OrderService_ShipOrder_Call) Run(run func(ctx context.Context, in *order.ShipOrderRequest, opts ...grpc.CallOption)) *OrderService_ShipOrder_Call
func (*OrderService_ShipOrder_Call) RunAndReturn ¶
func (_c *OrderService_ShipOrder_Call) RunAndReturn(run func(context.Context, *order.ShipOrderRequest, ...grpc.CallOption) (*order.ShipOrderResponse, error)) *OrderService_ShipOrder_Call
type ProductService ¶
ProductService is an autogenerated mock type for the ProductService type
func NewProductService ¶
func NewProductService(t interface { mock.TestingT Cleanup(func()) }) *ProductService
NewProductService creates a new instance of ProductService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProductService) CreateCategory ¶
func (_m *ProductService) CreateCategory(ctx context.Context, in *product.CreateCategoryRequest, opts ...grpc.CallOption) (*product.CreateCategoryResponse, error)
CreateCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) CreateProduct ¶
func (_m *ProductService) CreateProduct(ctx context.Context, in *product.CreateProductRequest, opts ...grpc.CallOption) (*product.CreateProductResponse, error)
CreateProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) CreateReview ¶
func (_m *ProductService) CreateReview(ctx context.Context, in *product.CreateReviewRequest, opts ...grpc.CallOption) (*product.CreateReviewResponse, error)
CreateReview provides a mock function with given fields: ctx, in, opts
func (*ProductService) CreateSku ¶
func (_m *ProductService) CreateSku(ctx context.Context, in *product.CreateSkuRequest, opts ...grpc.CallOption) (*product.CreateSkuResponse, error)
CreateSku provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteCategory ¶
func (_m *ProductService) DeleteCategory(ctx context.Context, in *product.DeleteCategoryRequest, opts ...grpc.CallOption) (*product.DeleteCategoryResponse, error)
DeleteCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteProduct ¶
func (_m *ProductService) DeleteProduct(ctx context.Context, in *product.DeleteProductRequest, opts ...grpc.CallOption) (*product.DeleteProductResponse, error)
DeleteProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteReview ¶
func (_m *ProductService) DeleteReview(ctx context.Context, in *product.DeleteReviewRequest, opts ...grpc.CallOption) (*product.DeleteReviewResponse, error)
DeleteReview provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteSku ¶
func (_m *ProductService) DeleteSku(ctx context.Context, in *product.DeleteSkuRequest, opts ...grpc.CallOption) (*product.DeleteSkuResponse, error)
DeleteSku provides a mock function with given fields: ctx, in, opts
func (*ProductService) EXPECT ¶
func (_m *ProductService) EXPECT() *ProductService_Expecter
func (*ProductService) GetCategories ¶
func (_m *ProductService) GetCategories(ctx context.Context, in *product.Empty, opts ...grpc.CallOption) (*product.GetCategoriesResponse, error)
GetCategories provides a mock function with given fields: ctx, in, opts
func (*ProductService) GetCategory ¶
func (_m *ProductService) GetCategory(ctx context.Context, in *product.GetCategoryRequest, opts ...grpc.CallOption) (*product.GetCategoryResponse, error)
GetCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) GetProduct ¶
func (_m *ProductService) GetProduct(ctx context.Context, in *product.GetProductRequest, opts ...grpc.CallOption) (*product.GetProductResponse, error)
GetProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) GetSku ¶
func (_m *ProductService) GetSku(ctx context.Context, in *product.GetSkuRequest, opts ...grpc.CallOption) (*product.GetSkuResponse, error)
GetSku provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListCategories ¶
func (_m *ProductService) ListCategories(ctx context.Context, in *product.ListCategoriesRequest, opts ...grpc.CallOption) (*product.ListCategoriesResponse, error)
ListCategories provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListProducts ¶
func (_m *ProductService) ListProducts(ctx context.Context, in *product.ListProductsRequest, opts ...grpc.CallOption) (*product.ListProductsResponse, error)
ListProducts provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListReviews ¶
func (_m *ProductService) ListReviews(ctx context.Context, in *product.ListReviewsRequest, opts ...grpc.CallOption) (*product.ListReviewsResponse, error)
ListReviews provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListSkus ¶
func (_m *ProductService) ListSkus(ctx context.Context, in *product.ListSkusRequest, opts ...grpc.CallOption) (*product.ListSkusResponse, error)
ListSkus provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateCategory ¶
func (_m *ProductService) UpdateCategory(ctx context.Context, in *product.UpdateCategoryRequest, opts ...grpc.CallOption) (*product.UpdateCategoryResponse, error)
UpdateCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateProduct ¶
func (_m *ProductService) UpdateProduct(ctx context.Context, in *product.UpdateProductRequest, opts ...grpc.CallOption) (*product.UpdateProductResponse, error)
UpdateProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateReview ¶
func (_m *ProductService) UpdateReview(ctx context.Context, in *product.UpdateReviewRequest, opts ...grpc.CallOption) (*product.UpdateReviewResponse, error)
UpdateReview provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateSku ¶
func (_m *ProductService) UpdateSku(ctx context.Context, in *product.UpdateSkuRequest, opts ...grpc.CallOption) (*product.UpdateSkuResponse, error)
UpdateSku provides a mock function with given fields: ctx, in, opts
type ProductService_CreateCategory_Call ¶
ProductService_CreateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCategory'
func (*ProductService_CreateCategory_Call) Return ¶
func (_c *ProductService_CreateCategory_Call) Return(_a0 *product.CreateCategoryResponse, _a1 error) *ProductService_CreateCategory_Call
func (*ProductService_CreateCategory_Call) Run ¶
func (_c *ProductService_CreateCategory_Call) Run(run func(ctx context.Context, in *product.CreateCategoryRequest, opts ...grpc.CallOption)) *ProductService_CreateCategory_Call
func (*ProductService_CreateCategory_Call) RunAndReturn ¶
func (_c *ProductService_CreateCategory_Call) RunAndReturn(run func(context.Context, *product.CreateCategoryRequest, ...grpc.CallOption) (*product.CreateCategoryResponse, error)) *ProductService_CreateCategory_Call
type ProductService_CreateProduct_Call ¶
ProductService_CreateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProduct'
func (*ProductService_CreateProduct_Call) Return ¶
func (_c *ProductService_CreateProduct_Call) Return(_a0 *product.CreateProductResponse, _a1 error) *ProductService_CreateProduct_Call
func (*ProductService_CreateProduct_Call) Run ¶
func (_c *ProductService_CreateProduct_Call) Run(run func(ctx context.Context, in *product.CreateProductRequest, opts ...grpc.CallOption)) *ProductService_CreateProduct_Call
func (*ProductService_CreateProduct_Call) RunAndReturn ¶
func (_c *ProductService_CreateProduct_Call) RunAndReturn(run func(context.Context, *product.CreateProductRequest, ...grpc.CallOption) (*product.CreateProductResponse, error)) *ProductService_CreateProduct_Call
type ProductService_CreateReview_Call ¶
ProductService_CreateReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateReview'
func (*ProductService_CreateReview_Call) Return ¶
func (_c *ProductService_CreateReview_Call) Return(_a0 *product.CreateReviewResponse, _a1 error) *ProductService_CreateReview_Call
func (*ProductService_CreateReview_Call) Run ¶
func (_c *ProductService_CreateReview_Call) Run(run func(ctx context.Context, in *product.CreateReviewRequest, opts ...grpc.CallOption)) *ProductService_CreateReview_Call
func (*ProductService_CreateReview_Call) RunAndReturn ¶
func (_c *ProductService_CreateReview_Call) RunAndReturn(run func(context.Context, *product.CreateReviewRequest, ...grpc.CallOption) (*product.CreateReviewResponse, error)) *ProductService_CreateReview_Call
type ProductService_CreateSku_Call ¶
ProductService_CreateSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSku'
func (*ProductService_CreateSku_Call) Return ¶
func (_c *ProductService_CreateSku_Call) Return(_a0 *product.CreateSkuResponse, _a1 error) *ProductService_CreateSku_Call
func (*ProductService_CreateSku_Call) Run ¶
func (_c *ProductService_CreateSku_Call) Run(run func(ctx context.Context, in *product.CreateSkuRequest, opts ...grpc.CallOption)) *ProductService_CreateSku_Call
func (*ProductService_CreateSku_Call) RunAndReturn ¶
func (_c *ProductService_CreateSku_Call) RunAndReturn(run func(context.Context, *product.CreateSkuRequest, ...grpc.CallOption) (*product.CreateSkuResponse, error)) *ProductService_CreateSku_Call
type ProductService_DeleteCategory_Call ¶
ProductService_DeleteCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategory'
func (*ProductService_DeleteCategory_Call) Return ¶
func (_c *ProductService_DeleteCategory_Call) Return(_a0 *product.DeleteCategoryResponse, _a1 error) *ProductService_DeleteCategory_Call
func (*ProductService_DeleteCategory_Call) Run ¶
func (_c *ProductService_DeleteCategory_Call) Run(run func(ctx context.Context, in *product.DeleteCategoryRequest, opts ...grpc.CallOption)) *ProductService_DeleteCategory_Call
func (*ProductService_DeleteCategory_Call) RunAndReturn ¶
func (_c *ProductService_DeleteCategory_Call) RunAndReturn(run func(context.Context, *product.DeleteCategoryRequest, ...grpc.CallOption) (*product.DeleteCategoryResponse, error)) *ProductService_DeleteCategory_Call
type ProductService_DeleteProduct_Call ¶
ProductService_DeleteProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProduct'
func (*ProductService_DeleteProduct_Call) Return ¶
func (_c *ProductService_DeleteProduct_Call) Return(_a0 *product.DeleteProductResponse, _a1 error) *ProductService_DeleteProduct_Call
func (*ProductService_DeleteProduct_Call) Run ¶
func (_c *ProductService_DeleteProduct_Call) Run(run func(ctx context.Context, in *product.DeleteProductRequest, opts ...grpc.CallOption)) *ProductService_DeleteProduct_Call
func (*ProductService_DeleteProduct_Call) RunAndReturn ¶
func (_c *ProductService_DeleteProduct_Call) RunAndReturn(run func(context.Context, *product.DeleteProductRequest, ...grpc.CallOption) (*product.DeleteProductResponse, error)) *ProductService_DeleteProduct_Call
type ProductService_DeleteReview_Call ¶
ProductService_DeleteReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReview'
func (*ProductService_DeleteReview_Call) Return ¶
func (_c *ProductService_DeleteReview_Call) Return(_a0 *product.DeleteReviewResponse, _a1 error) *ProductService_DeleteReview_Call
func (*ProductService_DeleteReview_Call) Run ¶
func (_c *ProductService_DeleteReview_Call) Run(run func(ctx context.Context, in *product.DeleteReviewRequest, opts ...grpc.CallOption)) *ProductService_DeleteReview_Call
func (*ProductService_DeleteReview_Call) RunAndReturn ¶
func (_c *ProductService_DeleteReview_Call) RunAndReturn(run func(context.Context, *product.DeleteReviewRequest, ...grpc.CallOption) (*product.DeleteReviewResponse, error)) *ProductService_DeleteReview_Call
type ProductService_DeleteSku_Call ¶
ProductService_DeleteSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSku'
func (*ProductService_DeleteSku_Call) Return ¶
func (_c *ProductService_DeleteSku_Call) Return(_a0 *product.DeleteSkuResponse, _a1 error) *ProductService_DeleteSku_Call
func (*ProductService_DeleteSku_Call) Run ¶
func (_c *ProductService_DeleteSku_Call) Run(run func(ctx context.Context, in *product.DeleteSkuRequest, opts ...grpc.CallOption)) *ProductService_DeleteSku_Call
func (*ProductService_DeleteSku_Call) RunAndReturn ¶
func (_c *ProductService_DeleteSku_Call) RunAndReturn(run func(context.Context, *product.DeleteSkuRequest, ...grpc.CallOption) (*product.DeleteSkuResponse, error)) *ProductService_DeleteSku_Call
type ProductService_Expecter ¶
type ProductService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProductService_Expecter) CreateCategory ¶
func (_e *ProductService_Expecter) CreateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateCategory_Call
CreateCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) CreateProduct ¶
func (_e *ProductService_Expecter) CreateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateProduct_Call
CreateProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) CreateReview ¶
func (_e *ProductService_Expecter) CreateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateReview_Call
CreateReview is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateReviewRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) CreateSku ¶
func (_e *ProductService_Expecter) CreateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateSku_Call
CreateSku is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateSkuRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteCategory ¶
func (_e *ProductService_Expecter) DeleteCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteCategory_Call
DeleteCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteProduct ¶
func (_e *ProductService_Expecter) DeleteProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteProduct_Call
DeleteProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteReview ¶
func (_e *ProductService_Expecter) DeleteReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteReview_Call
DeleteReview is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteReviewRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteSku ¶
func (_e *ProductService_Expecter) DeleteSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteSku_Call
DeleteSku is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteSkuRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetCategories ¶
func (_e *ProductService_Expecter) GetCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategories_Call
GetCategories is a helper method to define mock.On call
- ctx context.Context
- in *product.Empty
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetCategory ¶
func (_e *ProductService_Expecter) GetCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategory_Call
GetCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.GetCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetProduct ¶
func (_e *ProductService_Expecter) GetProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetProduct_Call
GetProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.GetProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetSku ¶
func (_e *ProductService_Expecter) GetSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetSku_Call
GetSku is a helper method to define mock.On call
- ctx context.Context
- in *product.GetSkuRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListCategories ¶
func (_e *ProductService_Expecter) ListCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListCategories_Call
ListCategories is a helper method to define mock.On call
- ctx context.Context
- in *product.ListCategoriesRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListProducts ¶
func (_e *ProductService_Expecter) ListProducts(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListProducts_Call
ListProducts is a helper method to define mock.On call
- ctx context.Context
- in *product.ListProductsRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListReviews ¶
func (_e *ProductService_Expecter) ListReviews(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListReviews_Call
ListReviews is a helper method to define mock.On call
- ctx context.Context
- in *product.ListReviewsRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListSkus ¶
func (_e *ProductService_Expecter) ListSkus(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListSkus_Call
ListSkus is a helper method to define mock.On call
- ctx context.Context
- in *product.ListSkusRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateCategory ¶
func (_e *ProductService_Expecter) UpdateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateCategory_Call
UpdateCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateProduct ¶
func (_e *ProductService_Expecter) UpdateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateProduct_Call
UpdateProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateReview ¶
func (_e *ProductService_Expecter) UpdateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateReview_Call
UpdateReview is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateReviewRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateSku ¶
func (_e *ProductService_Expecter) UpdateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateSku_Call
UpdateSku is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateSkuRequest
- opts ...grpc.CallOption
type ProductService_GetCategories_Call ¶
ProductService_GetCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategories'
func (*ProductService_GetCategories_Call) Return ¶
func (_c *ProductService_GetCategories_Call) Return(_a0 *product.GetCategoriesResponse, _a1 error) *ProductService_GetCategories_Call
func (*ProductService_GetCategories_Call) Run ¶
func (_c *ProductService_GetCategories_Call) Run(run func(ctx context.Context, in *product.Empty, opts ...grpc.CallOption)) *ProductService_GetCategories_Call
func (*ProductService_GetCategories_Call) RunAndReturn ¶
func (_c *ProductService_GetCategories_Call) RunAndReturn(run func(context.Context, *product.Empty, ...grpc.CallOption) (*product.GetCategoriesResponse, error)) *ProductService_GetCategories_Call
type ProductService_GetCategory_Call ¶
ProductService_GetCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategory'
func (*ProductService_GetCategory_Call) Return ¶
func (_c *ProductService_GetCategory_Call) Return(_a0 *product.GetCategoryResponse, _a1 error) *ProductService_GetCategory_Call
func (*ProductService_GetCategory_Call) Run ¶
func (_c *ProductService_GetCategory_Call) Run(run func(ctx context.Context, in *product.GetCategoryRequest, opts ...grpc.CallOption)) *ProductService_GetCategory_Call
func (*ProductService_GetCategory_Call) RunAndReturn ¶
func (_c *ProductService_GetCategory_Call) RunAndReturn(run func(context.Context, *product.GetCategoryRequest, ...grpc.CallOption) (*product.GetCategoryResponse, error)) *ProductService_GetCategory_Call
type ProductService_GetProduct_Call ¶
ProductService_GetProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProduct'
func (*ProductService_GetProduct_Call) Return ¶
func (_c *ProductService_GetProduct_Call) Return(_a0 *product.GetProductResponse, _a1 error) *ProductService_GetProduct_Call
func (*ProductService_GetProduct_Call) Run ¶
func (_c *ProductService_GetProduct_Call) Run(run func(ctx context.Context, in *product.GetProductRequest, opts ...grpc.CallOption)) *ProductService_GetProduct_Call
func (*ProductService_GetProduct_Call) RunAndReturn ¶
func (_c *ProductService_GetProduct_Call) RunAndReturn(run func(context.Context, *product.GetProductRequest, ...grpc.CallOption) (*product.GetProductResponse, error)) *ProductService_GetProduct_Call
type ProductService_GetSku_Call ¶
ProductService_GetSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSku'
func (*ProductService_GetSku_Call) Return ¶
func (_c *ProductService_GetSku_Call) Return(_a0 *product.GetSkuResponse, _a1 error) *ProductService_GetSku_Call
func (*ProductService_GetSku_Call) Run ¶
func (_c *ProductService_GetSku_Call) Run(run func(ctx context.Context, in *product.GetSkuRequest, opts ...grpc.CallOption)) *ProductService_GetSku_Call
func (*ProductService_GetSku_Call) RunAndReturn ¶
func (_c *ProductService_GetSku_Call) RunAndReturn(run func(context.Context, *product.GetSkuRequest, ...grpc.CallOption) (*product.GetSkuResponse, error)) *ProductService_GetSku_Call
type ProductService_ListCategories_Call ¶
ProductService_ListCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCategories'
func (*ProductService_ListCategories_Call) Return ¶
func (_c *ProductService_ListCategories_Call) Return(_a0 *product.ListCategoriesResponse, _a1 error) *ProductService_ListCategories_Call
func (*ProductService_ListCategories_Call) Run ¶
func (_c *ProductService_ListCategories_Call) Run(run func(ctx context.Context, in *product.ListCategoriesRequest, opts ...grpc.CallOption)) *ProductService_ListCategories_Call
func (*ProductService_ListCategories_Call) RunAndReturn ¶
func (_c *ProductService_ListCategories_Call) RunAndReturn(run func(context.Context, *product.ListCategoriesRequest, ...grpc.CallOption) (*product.ListCategoriesResponse, error)) *ProductService_ListCategories_Call
type ProductService_ListProducts_Call ¶
ProductService_ListProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProducts'
func (*ProductService_ListProducts_Call) Return ¶
func (_c *ProductService_ListProducts_Call) Return(_a0 *product.ListProductsResponse, _a1 error) *ProductService_ListProducts_Call
func (*ProductService_ListProducts_Call) Run ¶
func (_c *ProductService_ListProducts_Call) Run(run func(ctx context.Context, in *product.ListProductsRequest, opts ...grpc.CallOption)) *ProductService_ListProducts_Call
func (*ProductService_ListProducts_Call) RunAndReturn ¶
func (_c *ProductService_ListProducts_Call) RunAndReturn(run func(context.Context, *product.ListProductsRequest, ...grpc.CallOption) (*product.ListProductsResponse, error)) *ProductService_ListProducts_Call
type ProductService_ListReviews_Call ¶
ProductService_ListReviews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReviews'
func (*ProductService_ListReviews_Call) Return ¶
func (_c *ProductService_ListReviews_Call) Return(_a0 *product.ListReviewsResponse, _a1 error) *ProductService_ListReviews_Call
func (*ProductService_ListReviews_Call) Run ¶
func (_c *ProductService_ListReviews_Call) Run(run func(ctx context.Context, in *product.ListReviewsRequest, opts ...grpc.CallOption)) *ProductService_ListReviews_Call
func (*ProductService_ListReviews_Call) RunAndReturn ¶
func (_c *ProductService_ListReviews_Call) RunAndReturn(run func(context.Context, *product.ListReviewsRequest, ...grpc.CallOption) (*product.ListReviewsResponse, error)) *ProductService_ListReviews_Call
type ProductService_ListSkus_Call ¶
ProductService_ListSkus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSkus'
func (*ProductService_ListSkus_Call) Return ¶
func (_c *ProductService_ListSkus_Call) Return(_a0 *product.ListSkusResponse, _a1 error) *ProductService_ListSkus_Call
func (*ProductService_ListSkus_Call) Run ¶
func (_c *ProductService_ListSkus_Call) Run(run func(ctx context.Context, in *product.ListSkusRequest, opts ...grpc.CallOption)) *ProductService_ListSkus_Call
func (*ProductService_ListSkus_Call) RunAndReturn ¶
func (_c *ProductService_ListSkus_Call) RunAndReturn(run func(context.Context, *product.ListSkusRequest, ...grpc.CallOption) (*product.ListSkusResponse, error)) *ProductService_ListSkus_Call
type ProductService_UpdateCategory_Call ¶
ProductService_UpdateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCategory'
func (*ProductService_UpdateCategory_Call) Return ¶
func (_c *ProductService_UpdateCategory_Call) Return(_a0 *product.UpdateCategoryResponse, _a1 error) *ProductService_UpdateCategory_Call
func (*ProductService_UpdateCategory_Call) Run ¶
func (_c *ProductService_UpdateCategory_Call) Run(run func(ctx context.Context, in *product.UpdateCategoryRequest, opts ...grpc.CallOption)) *ProductService_UpdateCategory_Call
func (*ProductService_UpdateCategory_Call) RunAndReturn ¶
func (_c *ProductService_UpdateCategory_Call) RunAndReturn(run func(context.Context, *product.UpdateCategoryRequest, ...grpc.CallOption) (*product.UpdateCategoryResponse, error)) *ProductService_UpdateCategory_Call
type ProductService_UpdateProduct_Call ¶
ProductService_UpdateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProduct'
func (*ProductService_UpdateProduct_Call) Return ¶
func (_c *ProductService_UpdateProduct_Call) Return(_a0 *product.UpdateProductResponse, _a1 error) *ProductService_UpdateProduct_Call
func (*ProductService_UpdateProduct_Call) Run ¶
func (_c *ProductService_UpdateProduct_Call) Run(run func(ctx context.Context, in *product.UpdateProductRequest, opts ...grpc.CallOption)) *ProductService_UpdateProduct_Call
func (*ProductService_UpdateProduct_Call) RunAndReturn ¶
func (_c *ProductService_UpdateProduct_Call) RunAndReturn(run func(context.Context, *product.UpdateProductRequest, ...grpc.CallOption) (*product.UpdateProductResponse, error)) *ProductService_UpdateProduct_Call
type ProductService_UpdateReview_Call ¶
ProductService_UpdateReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateReview'
func (*ProductService_UpdateReview_Call) Return ¶
func (_c *ProductService_UpdateReview_Call) Return(_a0 *product.UpdateReviewResponse, _a1 error) *ProductService_UpdateReview_Call
func (*ProductService_UpdateReview_Call) Run ¶
func (_c *ProductService_UpdateReview_Call) Run(run func(ctx context.Context, in *product.UpdateReviewRequest, opts ...grpc.CallOption)) *ProductService_UpdateReview_Call
func (*ProductService_UpdateReview_Call) RunAndReturn ¶
func (_c *ProductService_UpdateReview_Call) RunAndReturn(run func(context.Context, *product.UpdateReviewRequest, ...grpc.CallOption) (*product.UpdateReviewResponse, error)) *ProductService_UpdateReview_Call
type ProductService_UpdateSku_Call ¶
ProductService_UpdateSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSku'
func (*ProductService_UpdateSku_Call) Return ¶
func (_c *ProductService_UpdateSku_Call) Return(_a0 *product.UpdateSkuResponse, _a1 error) *ProductService_UpdateSku_Call
func (*ProductService_UpdateSku_Call) Run ¶
func (_c *ProductService_UpdateSku_Call) Run(run func(ctx context.Context, in *product.UpdateSkuRequest, opts ...grpc.CallOption)) *ProductService_UpdateSku_Call
func (*ProductService_UpdateSku_Call) RunAndReturn ¶
func (_c *ProductService_UpdateSku_Call) RunAndReturn(run func(context.Context, *product.UpdateSkuRequest, ...grpc.CallOption) (*product.UpdateSkuResponse, error)) *ProductService_UpdateSku_Call
type User ¶
User is an autogenerated mock type for the User type
func NewUser ¶
NewUser creates a new instance of User. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*User) AddAddress ¶
func (_m *User) AddAddress(ctx context.Context, in *user.AddAddressRequest, opts ...grpc.CallOption) (*user.AddAddressResponse, error)
AddAddress provides a mock function with given fields: ctx, in, opts
func (*User) ChangePassword ¶
func (_m *User) ChangePassword(ctx context.Context, in *user.ChangePasswordRequest, opts ...grpc.CallOption) (*user.ChangePasswordResponse, error)
ChangePassword provides a mock function with given fields: ctx, in, opts
func (*User) DeleteAddress ¶
func (_m *User) DeleteAddress(ctx context.Context, in *user.DeleteAddressRequest, opts ...grpc.CallOption) (*user.DeleteAddressResponse, error)
DeleteAddress provides a mock function with given fields: ctx, in, opts
func (*User) EXPECT ¶
func (_m *User) EXPECT() *User_Expecter
func (*User) GetAddress ¶
func (_m *User) GetAddress(ctx context.Context, in *user.GetAddressRequest, opts ...grpc.CallOption) (*user.GetAddressResponse, error)
GetAddress provides a mock function with given fields: ctx, in, opts
func (*User) GetTransactions ¶
func (_m *User) GetTransactions(ctx context.Context, in *user.GetTransactionsRequest, opts ...grpc.CallOption) (*user.GetTransactionsResponse, error)
GetTransactions provides a mock function with given fields: ctx, in, opts
func (*User) GetUserAddresses ¶
func (_m *User) GetUserAddresses(ctx context.Context, in *user.GetUserAddressesRequest, opts ...grpc.CallOption) (*user.GetUserAddressesResponse, error)
GetUserAddresses provides a mock function with given fields: ctx, in, opts
func (*User) GetUserInfo ¶
func (_m *User) GetUserInfo(ctx context.Context, in *user.GetUserInfoRequest, opts ...grpc.CallOption) (*user.GetUserInfoResponse, error)
GetUserInfo provides a mock function with given fields: ctx, in, opts
func (*User) GetWallet ¶
func (_m *User) GetWallet(ctx context.Context, in *user.GetWalletRequest, opts ...grpc.CallOption) (*user.GetWalletResponse, error)
GetWallet provides a mock function with given fields: ctx, in, opts
func (*User) Login ¶
func (_m *User) Login(ctx context.Context, in *user.LoginRequest, opts ...grpc.CallOption) (*user.LoginResponse, error)
Login provides a mock function with given fields: ctx, in, opts
func (*User) Logout ¶
func (_m *User) Logout(ctx context.Context, in *user.LogoutRequest, opts ...grpc.CallOption) (*user.LogoutResponse, error)
Logout provides a mock function with given fields: ctx, in, opts
func (*User) RechargeWallet ¶
func (_m *User) RechargeWallet(ctx context.Context, in *user.RechargeWalletRequest, opts ...grpc.CallOption) (*user.RechargeWalletResponse, error)
RechargeWallet provides a mock function with given fields: ctx, in, opts
func (*User) Register ¶
func (_m *User) Register(ctx context.Context, in *user.RegisterRequest, opts ...grpc.CallOption) (*user.RegisterResponse, error)
Register provides a mock function with given fields: ctx, in, opts
func (*User) ResetPassword ¶
func (_m *User) ResetPassword(ctx context.Context, in *user.ResetPasswordRequest, opts ...grpc.CallOption) (*user.ResetPasswordResponse, error)
ResetPassword provides a mock function with given fields: ctx, in, opts
func (*User) UpdateAddress ¶
func (_m *User) UpdateAddress(ctx context.Context, in *user.UpdateAddressRequest, opts ...grpc.CallOption) (*user.UpdateAddressResponse, error)
UpdateAddress provides a mock function with given fields: ctx, in, opts
func (*User) UpdateUserInfo ¶
func (_m *User) UpdateUserInfo(ctx context.Context, in *user.UpdateUserInfoRequest, opts ...grpc.CallOption) (*user.UpdateUserInfoResponse, error)
UpdateUserInfo provides a mock function with given fields: ctx, in, opts
func (*User) WithdrawWallet ¶
func (_m *User) WithdrawWallet(ctx context.Context, in *user.WithdrawWalletRequest, opts ...grpc.CallOption) (*user.WithdrawWalletResponse, error)
WithdrawWallet provides a mock function with given fields: ctx, in, opts
type User_AddAddress_Call ¶
User_AddAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddAddress'
func (*User_AddAddress_Call) Return ¶
func (_c *User_AddAddress_Call) Return(_a0 *user.AddAddressResponse, _a1 error) *User_AddAddress_Call
func (*User_AddAddress_Call) Run ¶
func (_c *User_AddAddress_Call) Run(run func(ctx context.Context, in *user.AddAddressRequest, opts ...grpc.CallOption)) *User_AddAddress_Call
func (*User_AddAddress_Call) RunAndReturn ¶
func (_c *User_AddAddress_Call) RunAndReturn(run func(context.Context, *user.AddAddressRequest, ...grpc.CallOption) (*user.AddAddressResponse, error)) *User_AddAddress_Call
type User_ChangePassword_Call ¶
User_ChangePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangePassword'
func (*User_ChangePassword_Call) Return ¶
func (_c *User_ChangePassword_Call) Return(_a0 *user.ChangePasswordResponse, _a1 error) *User_ChangePassword_Call
func (*User_ChangePassword_Call) Run ¶
func (_c *User_ChangePassword_Call) Run(run func(ctx context.Context, in *user.ChangePasswordRequest, opts ...grpc.CallOption)) *User_ChangePassword_Call
func (*User_ChangePassword_Call) RunAndReturn ¶
func (_c *User_ChangePassword_Call) RunAndReturn(run func(context.Context, *user.ChangePasswordRequest, ...grpc.CallOption) (*user.ChangePasswordResponse, error)) *User_ChangePassword_Call
type User_DeleteAddress_Call ¶
User_DeleteAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAddress'
func (*User_DeleteAddress_Call) Return ¶
func (_c *User_DeleteAddress_Call) Return(_a0 *user.DeleteAddressResponse, _a1 error) *User_DeleteAddress_Call
func (*User_DeleteAddress_Call) Run ¶
func (_c *User_DeleteAddress_Call) Run(run func(ctx context.Context, in *user.DeleteAddressRequest, opts ...grpc.CallOption)) *User_DeleteAddress_Call
func (*User_DeleteAddress_Call) RunAndReturn ¶
func (_c *User_DeleteAddress_Call) RunAndReturn(run func(context.Context, *user.DeleteAddressRequest, ...grpc.CallOption) (*user.DeleteAddressResponse, error)) *User_DeleteAddress_Call
type User_Expecter ¶
type User_Expecter struct {
// contains filtered or unexported fields
}
func (*User_Expecter) AddAddress ¶
func (_e *User_Expecter) AddAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_AddAddress_Call
AddAddress is a helper method to define mock.On call
- ctx context.Context
- in *user.AddAddressRequest
- opts ...grpc.CallOption
func (*User_Expecter) ChangePassword ¶
func (_e *User_Expecter) ChangePassword(ctx interface{}, in interface{}, opts ...interface{}) *User_ChangePassword_Call
ChangePassword is a helper method to define mock.On call
- ctx context.Context
- in *user.ChangePasswordRequest
- opts ...grpc.CallOption
func (*User_Expecter) DeleteAddress ¶
func (_e *User_Expecter) DeleteAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_DeleteAddress_Call
DeleteAddress is a helper method to define mock.On call
- ctx context.Context
- in *user.DeleteAddressRequest
- opts ...grpc.CallOption
func (*User_Expecter) GetAddress ¶
func (_e *User_Expecter) GetAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_GetAddress_Call
GetAddress is a helper method to define mock.On call
- ctx context.Context
- in *user.GetAddressRequest
- opts ...grpc.CallOption
func (*User_Expecter) GetTransactions ¶
func (_e *User_Expecter) GetTransactions(ctx interface{}, in interface{}, opts ...interface{}) *User_GetTransactions_Call
GetTransactions is a helper method to define mock.On call
- ctx context.Context
- in *user.GetTransactionsRequest
- opts ...grpc.CallOption
func (*User_Expecter) GetUserAddresses ¶
func (_e *User_Expecter) GetUserAddresses(ctx interface{}, in interface{}, opts ...interface{}) *User_GetUserAddresses_Call
GetUserAddresses is a helper method to define mock.On call
- ctx context.Context
- in *user.GetUserAddressesRequest
- opts ...grpc.CallOption
func (*User_Expecter) GetUserInfo ¶
func (_e *User_Expecter) GetUserInfo(ctx interface{}, in interface{}, opts ...interface{}) *User_GetUserInfo_Call
GetUserInfo is a helper method to define mock.On call
- ctx context.Context
- in *user.GetUserInfoRequest
- opts ...grpc.CallOption
func (*User_Expecter) GetWallet ¶
func (_e *User_Expecter) GetWallet(ctx interface{}, in interface{}, opts ...interface{}) *User_GetWallet_Call
GetWallet is a helper method to define mock.On call
- ctx context.Context
- in *user.GetWalletRequest
- opts ...grpc.CallOption
func (*User_Expecter) Login ¶
func (_e *User_Expecter) Login(ctx interface{}, in interface{}, opts ...interface{}) *User_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- in *user.LoginRequest
- opts ...grpc.CallOption
func (*User_Expecter) Logout ¶
func (_e *User_Expecter) Logout(ctx interface{}, in interface{}, opts ...interface{}) *User_Logout_Call
Logout is a helper method to define mock.On call
- ctx context.Context
- in *user.LogoutRequest
- opts ...grpc.CallOption
func (*User_Expecter) RechargeWallet ¶
func (_e *User_Expecter) RechargeWallet(ctx interface{}, in interface{}, opts ...interface{}) *User_RechargeWallet_Call
RechargeWallet is a helper method to define mock.On call
- ctx context.Context
- in *user.RechargeWalletRequest
- opts ...grpc.CallOption
func (*User_Expecter) Register ¶
func (_e *User_Expecter) Register(ctx interface{}, in interface{}, opts ...interface{}) *User_Register_Call
Register is a helper method to define mock.On call
- ctx context.Context
- in *user.RegisterRequest
- opts ...grpc.CallOption
func (*User_Expecter) ResetPassword ¶
func (_e *User_Expecter) ResetPassword(ctx interface{}, in interface{}, opts ...interface{}) *User_ResetPassword_Call
ResetPassword is a helper method to define mock.On call
- ctx context.Context
- in *user.ResetPasswordRequest
- opts ...grpc.CallOption
func (*User_Expecter) UpdateAddress ¶
func (_e *User_Expecter) UpdateAddress(ctx interface{}, in interface{}, opts ...interface{}) *User_UpdateAddress_Call
UpdateAddress is a helper method to define mock.On call
- ctx context.Context
- in *user.UpdateAddressRequest
- opts ...grpc.CallOption
func (*User_Expecter) UpdateUserInfo ¶
func (_e *User_Expecter) UpdateUserInfo(ctx interface{}, in interface{}, opts ...interface{}) *User_UpdateUserInfo_Call
UpdateUserInfo is a helper method to define mock.On call
- ctx context.Context
- in *user.UpdateUserInfoRequest
- opts ...grpc.CallOption
func (*User_Expecter) WithdrawWallet ¶
func (_e *User_Expecter) WithdrawWallet(ctx interface{}, in interface{}, opts ...interface{}) *User_WithdrawWallet_Call
WithdrawWallet is a helper method to define mock.On call
- ctx context.Context
- in *user.WithdrawWalletRequest
- opts ...grpc.CallOption
type User_GetAddress_Call ¶
User_GetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddress'
func (*User_GetAddress_Call) Return ¶
func (_c *User_GetAddress_Call) Return(_a0 *user.GetAddressResponse, _a1 error) *User_GetAddress_Call
func (*User_GetAddress_Call) Run ¶
func (_c *User_GetAddress_Call) Run(run func(ctx context.Context, in *user.GetAddressRequest, opts ...grpc.CallOption)) *User_GetAddress_Call
func (*User_GetAddress_Call) RunAndReturn ¶
func (_c *User_GetAddress_Call) RunAndReturn(run func(context.Context, *user.GetAddressRequest, ...grpc.CallOption) (*user.GetAddressResponse, error)) *User_GetAddress_Call
type User_GetTransactions_Call ¶
User_GetTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactions'
func (*User_GetTransactions_Call) Return ¶
func (_c *User_GetTransactions_Call) Return(_a0 *user.GetTransactionsResponse, _a1 error) *User_GetTransactions_Call
func (*User_GetTransactions_Call) Run ¶
func (_c *User_GetTransactions_Call) Run(run func(ctx context.Context, in *user.GetTransactionsRequest, opts ...grpc.CallOption)) *User_GetTransactions_Call
func (*User_GetTransactions_Call) RunAndReturn ¶
func (_c *User_GetTransactions_Call) RunAndReturn(run func(context.Context, *user.GetTransactionsRequest, ...grpc.CallOption) (*user.GetTransactionsResponse, error)) *User_GetTransactions_Call
type User_GetUserAddresses_Call ¶
User_GetUserAddresses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserAddresses'
func (*User_GetUserAddresses_Call) Return ¶
func (_c *User_GetUserAddresses_Call) Return(_a0 *user.GetUserAddressesResponse, _a1 error) *User_GetUserAddresses_Call
func (*User_GetUserAddresses_Call) Run ¶
func (_c *User_GetUserAddresses_Call) Run(run func(ctx context.Context, in *user.GetUserAddressesRequest, opts ...grpc.CallOption)) *User_GetUserAddresses_Call
func (*User_GetUserAddresses_Call) RunAndReturn ¶
func (_c *User_GetUserAddresses_Call) RunAndReturn(run func(context.Context, *user.GetUserAddressesRequest, ...grpc.CallOption) (*user.GetUserAddressesResponse, error)) *User_GetUserAddresses_Call
type User_GetUserInfo_Call ¶
User_GetUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserInfo'
func (*User_GetUserInfo_Call) Return ¶
func (_c *User_GetUserInfo_Call) Return(_a0 *user.GetUserInfoResponse, _a1 error) *User_GetUserInfo_Call
func (*User_GetUserInfo_Call) Run ¶
func (_c *User_GetUserInfo_Call) Run(run func(ctx context.Context, in *user.GetUserInfoRequest, opts ...grpc.CallOption)) *User_GetUserInfo_Call
func (*User_GetUserInfo_Call) RunAndReturn ¶
func (_c *User_GetUserInfo_Call) RunAndReturn(run func(context.Context, *user.GetUserInfoRequest, ...grpc.CallOption) (*user.GetUserInfoResponse, error)) *User_GetUserInfo_Call
type User_GetWallet_Call ¶
User_GetWallet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWallet'
func (*User_GetWallet_Call) Return ¶
func (_c *User_GetWallet_Call) Return(_a0 *user.GetWalletResponse, _a1 error) *User_GetWallet_Call
func (*User_GetWallet_Call) Run ¶
func (_c *User_GetWallet_Call) Run(run func(ctx context.Context, in *user.GetWalletRequest, opts ...grpc.CallOption)) *User_GetWallet_Call
func (*User_GetWallet_Call) RunAndReturn ¶
func (_c *User_GetWallet_Call) RunAndReturn(run func(context.Context, *user.GetWalletRequest, ...grpc.CallOption) (*user.GetWalletResponse, error)) *User_GetWallet_Call
type User_Login_Call ¶
User_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*User_Login_Call) Return ¶
func (_c *User_Login_Call) Return(_a0 *user.LoginResponse, _a1 error) *User_Login_Call
func (*User_Login_Call) Run ¶
func (_c *User_Login_Call) Run(run func(ctx context.Context, in *user.LoginRequest, opts ...grpc.CallOption)) *User_Login_Call
func (*User_Login_Call) RunAndReturn ¶
func (_c *User_Login_Call) RunAndReturn(run func(context.Context, *user.LoginRequest, ...grpc.CallOption) (*user.LoginResponse, error)) *User_Login_Call
type User_Logout_Call ¶
User_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
func (*User_Logout_Call) Return ¶
func (_c *User_Logout_Call) Return(_a0 *user.LogoutResponse, _a1 error) *User_Logout_Call
func (*User_Logout_Call) Run ¶
func (_c *User_Logout_Call) Run(run func(ctx context.Context, in *user.LogoutRequest, opts ...grpc.CallOption)) *User_Logout_Call
func (*User_Logout_Call) RunAndReturn ¶
func (_c *User_Logout_Call) RunAndReturn(run func(context.Context, *user.LogoutRequest, ...grpc.CallOption) (*user.LogoutResponse, error)) *User_Logout_Call
type User_RechargeWallet_Call ¶
User_RechargeWallet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RechargeWallet'
func (*User_RechargeWallet_Call) Return ¶
func (_c *User_RechargeWallet_Call) Return(_a0 *user.RechargeWalletResponse, _a1 error) *User_RechargeWallet_Call
func (*User_RechargeWallet_Call) Run ¶
func (_c *User_RechargeWallet_Call) Run(run func(ctx context.Context, in *user.RechargeWalletRequest, opts ...grpc.CallOption)) *User_RechargeWallet_Call
func (*User_RechargeWallet_Call) RunAndReturn ¶
func (_c *User_RechargeWallet_Call) RunAndReturn(run func(context.Context, *user.RechargeWalletRequest, ...grpc.CallOption) (*user.RechargeWalletResponse, error)) *User_RechargeWallet_Call
type User_Register_Call ¶
User_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*User_Register_Call) Return ¶
func (_c *User_Register_Call) Return(_a0 *user.RegisterResponse, _a1 error) *User_Register_Call
func (*User_Register_Call) Run ¶
func (_c *User_Register_Call) Run(run func(ctx context.Context, in *user.RegisterRequest, opts ...grpc.CallOption)) *User_Register_Call
func (*User_Register_Call) RunAndReturn ¶
func (_c *User_Register_Call) RunAndReturn(run func(context.Context, *user.RegisterRequest, ...grpc.CallOption) (*user.RegisterResponse, error)) *User_Register_Call
type User_ResetPassword_Call ¶
User_ResetPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetPassword'
func (*User_ResetPassword_Call) Return ¶
func (_c *User_ResetPassword_Call) Return(_a0 *user.ResetPasswordResponse, _a1 error) *User_ResetPassword_Call
func (*User_ResetPassword_Call) Run ¶
func (_c *User_ResetPassword_Call) Run(run func(ctx context.Context, in *user.ResetPasswordRequest, opts ...grpc.CallOption)) *User_ResetPassword_Call
func (*User_ResetPassword_Call) RunAndReturn ¶
func (_c *User_ResetPassword_Call) RunAndReturn(run func(context.Context, *user.ResetPasswordRequest, ...grpc.CallOption) (*user.ResetPasswordResponse, error)) *User_ResetPassword_Call
type User_UpdateAddress_Call ¶
User_UpdateAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAddress'
func (*User_UpdateAddress_Call) Return ¶
func (_c *User_UpdateAddress_Call) Return(_a0 *user.UpdateAddressResponse, _a1 error) *User_UpdateAddress_Call
func (*User_UpdateAddress_Call) Run ¶
func (_c *User_UpdateAddress_Call) Run(run func(ctx context.Context, in *user.UpdateAddressRequest, opts ...grpc.CallOption)) *User_UpdateAddress_Call
func (*User_UpdateAddress_Call) RunAndReturn ¶
func (_c *User_UpdateAddress_Call) RunAndReturn(run func(context.Context, *user.UpdateAddressRequest, ...grpc.CallOption) (*user.UpdateAddressResponse, error)) *User_UpdateAddress_Call
type User_UpdateUserInfo_Call ¶
User_UpdateUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserInfo'
func (*User_UpdateUserInfo_Call) Return ¶
func (_c *User_UpdateUserInfo_Call) Return(_a0 *user.UpdateUserInfoResponse, _a1 error) *User_UpdateUserInfo_Call
func (*User_UpdateUserInfo_Call) Run ¶
func (_c *User_UpdateUserInfo_Call) Run(run func(ctx context.Context, in *user.UpdateUserInfoRequest, opts ...grpc.CallOption)) *User_UpdateUserInfo_Call
func (*User_UpdateUserInfo_Call) RunAndReturn ¶
func (_c *User_UpdateUserInfo_Call) RunAndReturn(run func(context.Context, *user.UpdateUserInfoRequest, ...grpc.CallOption) (*user.UpdateUserInfoResponse, error)) *User_UpdateUserInfo_Call
type User_WithdrawWallet_Call ¶
User_WithdrawWallet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithdrawWallet'
func (*User_WithdrawWallet_Call) Return ¶
func (_c *User_WithdrawWallet_Call) Return(_a0 *user.WithdrawWalletResponse, _a1 error) *User_WithdrawWallet_Call
func (*User_WithdrawWallet_Call) Run ¶
func (_c *User_WithdrawWallet_Call) Run(run func(ctx context.Context, in *user.WithdrawWalletRequest, opts ...grpc.CallOption)) *User_WithdrawWallet_Call
func (*User_WithdrawWallet_Call) RunAndReturn ¶
func (_c *User_WithdrawWallet_Call) RunAndReturn(run func(context.Context, *user.WithdrawWalletRequest, ...grpc.CallOption) (*user.WithdrawWalletResponse, error)) *User_WithdrawWallet_Call