order

package
v0.0.0-...-f22805c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelOrderLogic

type CancelOrderLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCancelOrderLogic

func NewCancelOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CancelOrderLogic

func (*CancelOrderLogic) CancelOrder

func (l *CancelOrderLogic) CancelOrder(req *types.CancelOrderReq) error

type Cart

type Cart struct {
	mock.Mock
}

Cart is an autogenerated mock type for the Cart type

func NewCart

func NewCart(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cart

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

type Cart_AddItem_Call struct {
	*mock.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 (*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

type Cart_CheckStock_Call

type Cart_CheckStock_Call struct {
	*mock.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 (*Cart_CheckStock_Call) Run

func (*Cart_CheckStock_Call) RunAndReturn

type Cart_ClearCart_Call

type Cart_ClearCart_Call struct {
	*mock.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 (*Cart_ClearCart_Call) Run

func (*Cart_ClearCart_Call) RunAndReturn

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

type Cart_GetCart_Call struct {
	*mock.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 (*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

type Cart_GetSelectedItems_Call

type Cart_GetSelectedItems_Call struct {
	*mock.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 (*Cart_GetSelectedItems_Call) Run

type Cart_RemoveItem_Call

type Cart_RemoveItem_Call struct {
	*mock.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 (*Cart_RemoveItem_Call) Run

func (*Cart_RemoveItem_Call) RunAndReturn

type Cart_SelectAll_Call

type Cart_SelectAll_Call struct {
	*mock.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 (*Cart_SelectAll_Call) Run

func (*Cart_SelectAll_Call) RunAndReturn

type Cart_SelectItem_Call

type Cart_SelectItem_Call struct {
	*mock.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 (*Cart_SelectItem_Call) Run

func (*Cart_SelectItem_Call) RunAndReturn

type Cart_UnselectAll_Call

type Cart_UnselectAll_Call struct {
	*mock.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 (*Cart_UnselectAll_Call) Run

func (*Cart_UnselectAll_Call) RunAndReturn

type Cart_UnselectItem_Call

type Cart_UnselectItem_Call struct {
	*mock.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 (*Cart_UnselectItem_Call) Run

type Cart_UpdateItem_Call

type Cart_UpdateItem_Call struct {
	*mock.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 (*Cart_UpdateItem_Call) Run

func (*Cart_UpdateItem_Call) RunAndReturn

type ConfirmReceivedLogic

type ConfirmReceivedLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewConfirmReceivedLogic

func NewConfirmReceivedLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ConfirmReceivedLogic

func (*ConfirmReceivedLogic) ConfirmReceived

func (l *ConfirmReceivedLogic) ConfirmReceived(req *types.ConfirmOrderReq) error

type CreateOrderLogic

type CreateOrderLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type CreateRefundLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type GetOrderLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type ListOrdersLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type OrderService struct {
	mock.Mock
}

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

CancelOrder provides a mock function with given fields: ctx, in, opts

func (*OrderService) ConfirmOrder

ConfirmOrder provides a mock function with given fields: ctx, in, opts

func (*OrderService) CreateOrder

CreateOrder provides a mock function with given fields: ctx, in, opts

func (*OrderService) CreateRefund

CreateRefund provides a mock function with given fields: ctx, in, opts

func (*OrderService) EXPECT

func (_m *OrderService) EXPECT() *OrderService_Expecter

func (*OrderService) GetOrder

GetOrder provides a mock function with given fields: ctx, in, opts

func (*OrderService) GetPaymentStatus

GetPaymentStatus provides a mock function with given fields: ctx, in, opts

func (*OrderService) GetRefund

GetRefund provides a mock function with given fields: ctx, in, opts

func (*OrderService) ListOrders

ListOrders provides a mock function with given fields: ctx, in, opts

func (*OrderService) PayOrder

PayOrder provides a mock function with given fields: ctx, in, opts

func (*OrderService) ProcessRefund

ProcessRefund provides a mock function with given fields: ctx, in, opts

func (*OrderService) ReceiveOrder

ReceiveOrder provides a mock function with given fields: ctx, in, opts

func (*OrderService) ShipOrder

ShipOrder provides a mock function with given fields: ctx, in, opts

type OrderService_CancelOrder_Call

type OrderService_CancelOrder_Call struct {
	*mock.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 (*OrderService_CancelOrder_Call) Run

type OrderService_ConfirmOrder_Call

type OrderService_ConfirmOrder_Call struct {
	*mock.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 (*OrderService_ConfirmOrder_Call) Run

type OrderService_CreateOrder_Call

type OrderService_CreateOrder_Call struct {
	*mock.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 (*OrderService_CreateOrder_Call) Run

type OrderService_CreateRefund_Call

type OrderService_CreateRefund_Call struct {
	*mock.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 (*OrderService_CreateRefund_Call) Run

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

type OrderService_GetOrder_Call struct {
	*mock.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 (*OrderService_GetOrder_Call) Run

func (*OrderService_GetOrder_Call) RunAndReturn

type OrderService_GetPaymentStatus_Call

type OrderService_GetPaymentStatus_Call struct {
	*mock.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 (*OrderService_GetPaymentStatus_Call) Run

type OrderService_GetRefund_Call

type OrderService_GetRefund_Call struct {
	*mock.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 (*OrderService_GetRefund_Call) Run

func (*OrderService_GetRefund_Call) RunAndReturn

type OrderService_ListOrders_Call

type OrderService_ListOrders_Call struct {
	*mock.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 (*OrderService_ListOrders_Call) Run

type OrderService_PayOrder_Call

type OrderService_PayOrder_Call struct {
	*mock.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 (*OrderService_PayOrder_Call) Run

func (*OrderService_PayOrder_Call) RunAndReturn

type OrderService_ProcessRefund_Call

type OrderService_ProcessRefund_Call struct {
	*mock.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 (*OrderService_ProcessRefund_Call) Run

type OrderService_ReceiveOrder_Call

type OrderService_ReceiveOrder_Call struct {
	*mock.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 (*OrderService_ReceiveOrder_Call) Run

type OrderService_ShipOrder_Call

type OrderService_ShipOrder_Call struct {
	*mock.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 (*OrderService_ShipOrder_Call) Run

func (*OrderService_ShipOrder_Call) RunAndReturn

type ProductService

type ProductService struct {
	mock.Mock
}

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

CreateCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) CreateProduct

CreateProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) CreateReview

CreateReview provides a mock function with given fields: ctx, in, opts

func (*ProductService) CreateSku

CreateSku provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteCategory

DeleteCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteProduct

DeleteProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteReview

DeleteReview provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteSku

DeleteSku provides a mock function with given fields: ctx, in, opts

func (*ProductService) EXPECT

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

GetCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) GetProduct

GetProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) GetSku

GetSku provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListCategories

ListCategories provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListProducts

ListProducts provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListReviews

ListReviews provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListSkus

ListSkus provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateCategory

UpdateCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateProduct

UpdateProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateReview

UpdateReview provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateSku

UpdateSku provides a mock function with given fields: ctx, in, opts

type ProductService_CreateCategory_Call

type ProductService_CreateCategory_Call struct {
	*mock.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 (*ProductService_CreateCategory_Call) Run

type ProductService_CreateProduct_Call

type ProductService_CreateProduct_Call struct {
	*mock.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 (*ProductService_CreateProduct_Call) Run

type ProductService_CreateReview_Call

type ProductService_CreateReview_Call struct {
	*mock.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 (*ProductService_CreateReview_Call) Run

type ProductService_CreateSku_Call

type ProductService_CreateSku_Call struct {
	*mock.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 (*ProductService_CreateSku_Call) Run

type ProductService_DeleteCategory_Call

type ProductService_DeleteCategory_Call struct {
	*mock.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 (*ProductService_DeleteCategory_Call) Run

type ProductService_DeleteProduct_Call

type ProductService_DeleteProduct_Call struct {
	*mock.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 (*ProductService_DeleteProduct_Call) Run

type ProductService_DeleteReview_Call

type ProductService_DeleteReview_Call struct {
	*mock.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 (*ProductService_DeleteReview_Call) Run

type ProductService_DeleteSku_Call

type ProductService_DeleteSku_Call struct {
	*mock.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 (*ProductService_DeleteSku_Call) Run

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

type ProductService_GetCategories_Call struct {
	*mock.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 (*ProductService_GetCategories_Call) Run

func (*ProductService_GetCategories_Call) RunAndReturn

type ProductService_GetCategory_Call

type ProductService_GetCategory_Call struct {
	*mock.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 (*ProductService_GetCategory_Call) Run

type ProductService_GetProduct_Call

type ProductService_GetProduct_Call struct {
	*mock.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 (*ProductService_GetProduct_Call) Run

type ProductService_GetSku_Call

type ProductService_GetSku_Call struct {
	*mock.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 (*ProductService_GetSku_Call) Run

func (*ProductService_GetSku_Call) RunAndReturn

type ProductService_ListCategories_Call

type ProductService_ListCategories_Call struct {
	*mock.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 (*ProductService_ListCategories_Call) Run

type ProductService_ListProducts_Call

type ProductService_ListProducts_Call struct {
	*mock.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 (*ProductService_ListProducts_Call) Run

type ProductService_ListReviews_Call

type ProductService_ListReviews_Call struct {
	*mock.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 (*ProductService_ListReviews_Call) Run

type ProductService_ListSkus_Call

type ProductService_ListSkus_Call struct {
	*mock.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 (*ProductService_ListSkus_Call) Run

type ProductService_UpdateCategory_Call

type ProductService_UpdateCategory_Call struct {
	*mock.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 (*ProductService_UpdateCategory_Call) Run

type ProductService_UpdateProduct_Call

type ProductService_UpdateProduct_Call struct {
	*mock.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 (*ProductService_UpdateProduct_Call) Run

type ProductService_UpdateReview_Call

type ProductService_UpdateReview_Call struct {
	*mock.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 (*ProductService_UpdateReview_Call) Run

type ProductService_UpdateSku_Call

type ProductService_UpdateSku_Call struct {
	*mock.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 (*ProductService_UpdateSku_Call) Run

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func NewUser

func NewUser(t interface {
	mock.TestingT
	Cleanup(func())
}) *User

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

type User_AddAddress_Call struct {
	*mock.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 (*User_AddAddress_Call) Run

func (*User_AddAddress_Call) RunAndReturn

type User_ChangePassword_Call

type User_ChangePassword_Call struct {
	*mock.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 (*User_ChangePassword_Call) Run

type User_DeleteAddress_Call

type User_DeleteAddress_Call struct {
	*mock.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 (*User_DeleteAddress_Call) Run

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

type User_GetAddress_Call struct {
	*mock.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 (*User_GetAddress_Call) Run

func (*User_GetAddress_Call) RunAndReturn

type User_GetTransactions_Call

type User_GetTransactions_Call struct {
	*mock.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 (*User_GetTransactions_Call) Run

type User_GetUserAddresses_Call

type User_GetUserAddresses_Call struct {
	*mock.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 (*User_GetUserAddresses_Call) Run

type User_GetUserInfo_Call

type User_GetUserInfo_Call struct {
	*mock.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 (*User_GetUserInfo_Call) Run

func (*User_GetUserInfo_Call) RunAndReturn

type User_GetWallet_Call

type User_GetWallet_Call struct {
	*mock.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 (*User_GetWallet_Call) Run

func (*User_GetWallet_Call) RunAndReturn

type User_Login_Call

type User_Login_Call struct {
	*mock.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

type User_Logout_Call

type User_Logout_Call struct {
	*mock.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 (*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

type User_RechargeWallet_Call

type User_RechargeWallet_Call struct {
	*mock.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 (*User_RechargeWallet_Call) Run

type User_Register_Call

type User_Register_Call struct {
	*mock.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 (*User_Register_Call) Run

func (*User_Register_Call) RunAndReturn

type User_ResetPassword_Call

type User_ResetPassword_Call struct {
	*mock.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 (*User_ResetPassword_Call) Run

type User_UpdateAddress_Call

type User_UpdateAddress_Call struct {
	*mock.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 (*User_UpdateAddress_Call) Run

type User_UpdateUserInfo_Call

type User_UpdateUserInfo_Call struct {
	*mock.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 (*User_UpdateUserInfo_Call) Run

type User_WithdrawWallet_Call

type User_WithdrawWallet_Call struct {
	*mock.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 (*User_WithdrawWallet_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL