Documentation
¶
Index ¶
- type CreatePaymentLogic
- type GetPaymentStatusLogic
- type GetRefundStatusLogic
- type Payment
- func (_m *Payment) CreatePayment(ctx context.Context, in *payment.CreatePaymentRequest, opts ...grpc.CallOption) (*payment.CreatePaymentResponse, error)
- func (_m *Payment) CreatePaymentChannel(ctx context.Context, in *payment.CreatePaymentChannelRequest, ...) (*payment.CreatePaymentChannelResponse, error)
- func (_m *Payment) CreateRefund(ctx context.Context, in *payment.CreateRefundRequest, opts ...grpc.CallOption) (*payment.CreateRefundResponse, error)
- func (_m *Payment) EXPECT() *Payment_Expecter
- func (_m *Payment) GetPayment(ctx context.Context, in *payment.GetPaymentRequest, opts ...grpc.CallOption) (*payment.GetPaymentResponse, error)
- func (_m *Payment) GetPaymentStatus(ctx context.Context, in *payment.GetPaymentStatusRequest, ...) (*payment.GetPaymentStatusResponse, error)
- func (_m *Payment) GetRefund(ctx context.Context, in *payment.GetRefundRequest, opts ...grpc.CallOption) (*payment.GetRefundResponse, error)
- func (_m *Payment) ListPaymentChannels(ctx context.Context, in *payment.ListPaymentChannelsRequest, ...) (*payment.ListPaymentChannelsResponse, error)
- func (_m *Payment) PaymentNotify(ctx context.Context, in *payment.PaymentNotifyRequest, opts ...grpc.CallOption) (*payment.PaymentNotifyResponse, error)
- func (_m *Payment) RefundNotify(ctx context.Context, in *payment.RefundNotifyRequest, opts ...grpc.CallOption) (*payment.RefundNotifyResponse, error)
- func (_m *Payment) UpdatePaymentChannel(ctx context.Context, in *payment.UpdatePaymentChannelRequest, ...) (*payment.UpdatePaymentChannelResponse, error)
- type PaymentNotifyLogic
- type Payment_CreatePaymentChannel_Call
- func (_c *Payment_CreatePaymentChannel_Call) Return(_a0 *payment.CreatePaymentChannelResponse, _a1 error) *Payment_CreatePaymentChannel_Call
- func (_c *Payment_CreatePaymentChannel_Call) Run(run func(ctx context.Context, in *payment.CreatePaymentChannelRequest, ...)) *Payment_CreatePaymentChannel_Call
- func (_c *Payment_CreatePaymentChannel_Call) RunAndReturn(...) *Payment_CreatePaymentChannel_Call
- type Payment_CreatePayment_Call
- type Payment_CreateRefund_Call
- type Payment_Expecter
- func (_e *Payment_Expecter) CreatePayment(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreatePayment_Call
- func (_e *Payment_Expecter) CreatePaymentChannel(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreatePaymentChannel_Call
- func (_e *Payment_Expecter) CreateRefund(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreateRefund_Call
- func (_e *Payment_Expecter) GetPayment(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetPayment_Call
- func (_e *Payment_Expecter) GetPaymentStatus(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetPaymentStatus_Call
- func (_e *Payment_Expecter) GetRefund(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetRefund_Call
- func (_e *Payment_Expecter) ListPaymentChannels(ctx interface{}, in interface{}, opts ...interface{}) *Payment_ListPaymentChannels_Call
- func (_e *Payment_Expecter) PaymentNotify(ctx interface{}, in interface{}, opts ...interface{}) *Payment_PaymentNotify_Call
- func (_e *Payment_Expecter) RefundNotify(ctx interface{}, in interface{}, opts ...interface{}) *Payment_RefundNotify_Call
- func (_e *Payment_Expecter) UpdatePaymentChannel(ctx interface{}, in interface{}, opts ...interface{}) *Payment_UpdatePaymentChannel_Call
- type Payment_GetPaymentStatus_Call
- func (_c *Payment_GetPaymentStatus_Call) Return(_a0 *payment.GetPaymentStatusResponse, _a1 error) *Payment_GetPaymentStatus_Call
- func (_c *Payment_GetPaymentStatus_Call) Run(run func(ctx context.Context, in *payment.GetPaymentStatusRequest, ...)) *Payment_GetPaymentStatus_Call
- func (_c *Payment_GetPaymentStatus_Call) RunAndReturn(...) *Payment_GetPaymentStatus_Call
- type Payment_GetPayment_Call
- type Payment_GetRefund_Call
- type Payment_ListPaymentChannels_Call
- func (_c *Payment_ListPaymentChannels_Call) Return(_a0 *payment.ListPaymentChannelsResponse, _a1 error) *Payment_ListPaymentChannels_Call
- func (_c *Payment_ListPaymentChannels_Call) Run(run func(ctx context.Context, in *payment.ListPaymentChannelsRequest, ...)) *Payment_ListPaymentChannels_Call
- func (_c *Payment_ListPaymentChannels_Call) RunAndReturn(...) *Payment_ListPaymentChannels_Call
- type Payment_PaymentNotify_Call
- type Payment_RefundNotify_Call
- type Payment_UpdatePaymentChannel_Call
- func (_c *Payment_UpdatePaymentChannel_Call) Return(_a0 *payment.UpdatePaymentChannelResponse, _a1 error) *Payment_UpdatePaymentChannel_Call
- func (_c *Payment_UpdatePaymentChannel_Call) Run(run func(ctx context.Context, in *payment.UpdatePaymentChannelRequest, ...)) *Payment_UpdatePaymentChannel_Call
- func (_c *Payment_UpdatePaymentChannel_Call) RunAndReturn(...) *Payment_UpdatePaymentChannel_Call
- type RefundNotifyLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePaymentLogic ¶
func NewCreatePaymentLogic ¶
func NewCreatePaymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreatePaymentLogic
func (*CreatePaymentLogic) CreatePayment ¶
func (l *CreatePaymentLogic) CreatePayment(req *types.CreatePaymentReq) (resp *types.CreatePaymentResp, err error)
type GetPaymentStatusLogic ¶
func NewGetPaymentStatusLogic ¶
func NewGetPaymentStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPaymentStatusLogic
func (*GetPaymentStatusLogic) GetPaymentStatus ¶
func (l *GetPaymentStatusLogic) GetPaymentStatus(req *types.PaymentStatusReq) (resp *types.PaymentStatusResp, err error)
type GetRefundStatusLogic ¶
func NewGetRefundStatusLogic ¶
func NewGetRefundStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetRefundStatusLogic
func (*GetRefundStatusLogic) GetRefundStatus ¶
func (l *GetRefundStatusLogic) GetRefundStatus(req *types.RefundStatusReq) (resp *types.RefundStatusResp, err error)
type Payment ¶
Payment is an autogenerated mock type for the Payment type
func NewPayment ¶
NewPayment creates a new instance of Payment. 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 (*Payment) CreatePayment ¶
func (_m *Payment) CreatePayment(ctx context.Context, in *payment.CreatePaymentRequest, opts ...grpc.CallOption) (*payment.CreatePaymentResponse, error)
CreatePayment provides a mock function with given fields: ctx, in, opts
func (*Payment) CreatePaymentChannel ¶
func (_m *Payment) CreatePaymentChannel(ctx context.Context, in *payment.CreatePaymentChannelRequest, opts ...grpc.CallOption) (*payment.CreatePaymentChannelResponse, error)
CreatePaymentChannel provides a mock function with given fields: ctx, in, opts
func (*Payment) CreateRefund ¶
func (_m *Payment) CreateRefund(ctx context.Context, in *payment.CreateRefundRequest, opts ...grpc.CallOption) (*payment.CreateRefundResponse, error)
CreateRefund provides a mock function with given fields: ctx, in, opts
func (*Payment) EXPECT ¶
func (_m *Payment) EXPECT() *Payment_Expecter
func (*Payment) GetPayment ¶
func (_m *Payment) GetPayment(ctx context.Context, in *payment.GetPaymentRequest, opts ...grpc.CallOption) (*payment.GetPaymentResponse, error)
GetPayment provides a mock function with given fields: ctx, in, opts
func (*Payment) GetPaymentStatus ¶
func (_m *Payment) GetPaymentStatus(ctx context.Context, in *payment.GetPaymentStatusRequest, opts ...grpc.CallOption) (*payment.GetPaymentStatusResponse, error)
GetPaymentStatus provides a mock function with given fields: ctx, in, opts
func (*Payment) GetRefund ¶
func (_m *Payment) GetRefund(ctx context.Context, in *payment.GetRefundRequest, opts ...grpc.CallOption) (*payment.GetRefundResponse, error)
GetRefund provides a mock function with given fields: ctx, in, opts
func (*Payment) ListPaymentChannels ¶
func (_m *Payment) ListPaymentChannels(ctx context.Context, in *payment.ListPaymentChannelsRequest, opts ...grpc.CallOption) (*payment.ListPaymentChannelsResponse, error)
ListPaymentChannels provides a mock function with given fields: ctx, in, opts
func (*Payment) PaymentNotify ¶
func (_m *Payment) PaymentNotify(ctx context.Context, in *payment.PaymentNotifyRequest, opts ...grpc.CallOption) (*payment.PaymentNotifyResponse, error)
PaymentNotify provides a mock function with given fields: ctx, in, opts
func (*Payment) RefundNotify ¶
func (_m *Payment) RefundNotify(ctx context.Context, in *payment.RefundNotifyRequest, opts ...grpc.CallOption) (*payment.RefundNotifyResponse, error)
RefundNotify provides a mock function with given fields: ctx, in, opts
func (*Payment) UpdatePaymentChannel ¶
func (_m *Payment) UpdatePaymentChannel(ctx context.Context, in *payment.UpdatePaymentChannelRequest, opts ...grpc.CallOption) (*payment.UpdatePaymentChannelResponse, error)
UpdatePaymentChannel provides a mock function with given fields: ctx, in, opts
type PaymentNotifyLogic ¶
func NewPaymentNotifyLogic ¶
func NewPaymentNotifyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PaymentNotifyLogic
func (*PaymentNotifyLogic) PaymentNotify ¶
func (l *PaymentNotifyLogic) PaymentNotify(req *types.PaymentNotifyReq) (resp *types.PaymentNotifyResp, err error)
type Payment_CreatePaymentChannel_Call ¶
Payment_CreatePaymentChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePaymentChannel'
func (*Payment_CreatePaymentChannel_Call) Return ¶
func (_c *Payment_CreatePaymentChannel_Call) Return(_a0 *payment.CreatePaymentChannelResponse, _a1 error) *Payment_CreatePaymentChannel_Call
func (*Payment_CreatePaymentChannel_Call) Run ¶
func (_c *Payment_CreatePaymentChannel_Call) Run(run func(ctx context.Context, in *payment.CreatePaymentChannelRequest, opts ...grpc.CallOption)) *Payment_CreatePaymentChannel_Call
func (*Payment_CreatePaymentChannel_Call) RunAndReturn ¶
func (_c *Payment_CreatePaymentChannel_Call) RunAndReturn(run func(context.Context, *payment.CreatePaymentChannelRequest, ...grpc.CallOption) (*payment.CreatePaymentChannelResponse, error)) *Payment_CreatePaymentChannel_Call
type Payment_CreatePayment_Call ¶
Payment_CreatePayment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePayment'
func (*Payment_CreatePayment_Call) Return ¶
func (_c *Payment_CreatePayment_Call) Return(_a0 *payment.CreatePaymentResponse, _a1 error) *Payment_CreatePayment_Call
func (*Payment_CreatePayment_Call) Run ¶
func (_c *Payment_CreatePayment_Call) Run(run func(ctx context.Context, in *payment.CreatePaymentRequest, opts ...grpc.CallOption)) *Payment_CreatePayment_Call
func (*Payment_CreatePayment_Call) RunAndReturn ¶
func (_c *Payment_CreatePayment_Call) RunAndReturn(run func(context.Context, *payment.CreatePaymentRequest, ...grpc.CallOption) (*payment.CreatePaymentResponse, error)) *Payment_CreatePayment_Call
type Payment_CreateRefund_Call ¶
Payment_CreateRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRefund'
func (*Payment_CreateRefund_Call) Return ¶
func (_c *Payment_CreateRefund_Call) Return(_a0 *payment.CreateRefundResponse, _a1 error) *Payment_CreateRefund_Call
func (*Payment_CreateRefund_Call) Run ¶
func (_c *Payment_CreateRefund_Call) Run(run func(ctx context.Context, in *payment.CreateRefundRequest, opts ...grpc.CallOption)) *Payment_CreateRefund_Call
func (*Payment_CreateRefund_Call) RunAndReturn ¶
func (_c *Payment_CreateRefund_Call) RunAndReturn(run func(context.Context, *payment.CreateRefundRequest, ...grpc.CallOption) (*payment.CreateRefundResponse, error)) *Payment_CreateRefund_Call
type Payment_Expecter ¶
type Payment_Expecter struct {
// contains filtered or unexported fields
}
func (*Payment_Expecter) CreatePayment ¶
func (_e *Payment_Expecter) CreatePayment(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreatePayment_Call
CreatePayment is a helper method to define mock.On call
- ctx context.Context
- in *payment.CreatePaymentRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) CreatePaymentChannel ¶
func (_e *Payment_Expecter) CreatePaymentChannel(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreatePaymentChannel_Call
CreatePaymentChannel is a helper method to define mock.On call
- ctx context.Context
- in *payment.CreatePaymentChannelRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) CreateRefund ¶
func (_e *Payment_Expecter) CreateRefund(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreateRefund_Call
CreateRefund is a helper method to define mock.On call
- ctx context.Context
- in *payment.CreateRefundRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) GetPayment ¶
func (_e *Payment_Expecter) GetPayment(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetPayment_Call
GetPayment is a helper method to define mock.On call
- ctx context.Context
- in *payment.GetPaymentRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) GetPaymentStatus ¶
func (_e *Payment_Expecter) GetPaymentStatus(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetPaymentStatus_Call
GetPaymentStatus is a helper method to define mock.On call
- ctx context.Context
- in *payment.GetPaymentStatusRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) GetRefund ¶
func (_e *Payment_Expecter) GetRefund(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetRefund_Call
GetRefund is a helper method to define mock.On call
- ctx context.Context
- in *payment.GetRefundRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) ListPaymentChannels ¶
func (_e *Payment_Expecter) ListPaymentChannels(ctx interface{}, in interface{}, opts ...interface{}) *Payment_ListPaymentChannels_Call
ListPaymentChannels is a helper method to define mock.On call
- ctx context.Context
- in *payment.ListPaymentChannelsRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) PaymentNotify ¶
func (_e *Payment_Expecter) PaymentNotify(ctx interface{}, in interface{}, opts ...interface{}) *Payment_PaymentNotify_Call
PaymentNotify is a helper method to define mock.On call
- ctx context.Context
- in *payment.PaymentNotifyRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) RefundNotify ¶
func (_e *Payment_Expecter) RefundNotify(ctx interface{}, in interface{}, opts ...interface{}) *Payment_RefundNotify_Call
RefundNotify is a helper method to define mock.On call
- ctx context.Context
- in *payment.RefundNotifyRequest
- opts ...grpc.CallOption
func (*Payment_Expecter) UpdatePaymentChannel ¶
func (_e *Payment_Expecter) UpdatePaymentChannel(ctx interface{}, in interface{}, opts ...interface{}) *Payment_UpdatePaymentChannel_Call
UpdatePaymentChannel is a helper method to define mock.On call
- ctx context.Context
- in *payment.UpdatePaymentChannelRequest
- opts ...grpc.CallOption
type Payment_GetPaymentStatus_Call ¶
Payment_GetPaymentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPaymentStatus'
func (*Payment_GetPaymentStatus_Call) Return ¶
func (_c *Payment_GetPaymentStatus_Call) Return(_a0 *payment.GetPaymentStatusResponse, _a1 error) *Payment_GetPaymentStatus_Call
func (*Payment_GetPaymentStatus_Call) Run ¶
func (_c *Payment_GetPaymentStatus_Call) Run(run func(ctx context.Context, in *payment.GetPaymentStatusRequest, opts ...grpc.CallOption)) *Payment_GetPaymentStatus_Call
func (*Payment_GetPaymentStatus_Call) RunAndReturn ¶
func (_c *Payment_GetPaymentStatus_Call) RunAndReturn(run func(context.Context, *payment.GetPaymentStatusRequest, ...grpc.CallOption) (*payment.GetPaymentStatusResponse, error)) *Payment_GetPaymentStatus_Call
type Payment_GetPayment_Call ¶
Payment_GetPayment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPayment'
func (*Payment_GetPayment_Call) Return ¶
func (_c *Payment_GetPayment_Call) Return(_a0 *payment.GetPaymentResponse, _a1 error) *Payment_GetPayment_Call
func (*Payment_GetPayment_Call) Run ¶
func (_c *Payment_GetPayment_Call) Run(run func(ctx context.Context, in *payment.GetPaymentRequest, opts ...grpc.CallOption)) *Payment_GetPayment_Call
func (*Payment_GetPayment_Call) RunAndReturn ¶
func (_c *Payment_GetPayment_Call) RunAndReturn(run func(context.Context, *payment.GetPaymentRequest, ...grpc.CallOption) (*payment.GetPaymentResponse, error)) *Payment_GetPayment_Call
type Payment_GetRefund_Call ¶
Payment_GetRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRefund'
func (*Payment_GetRefund_Call) Return ¶
func (_c *Payment_GetRefund_Call) Return(_a0 *payment.GetRefundResponse, _a1 error) *Payment_GetRefund_Call
func (*Payment_GetRefund_Call) Run ¶
func (_c *Payment_GetRefund_Call) Run(run func(ctx context.Context, in *payment.GetRefundRequest, opts ...grpc.CallOption)) *Payment_GetRefund_Call
func (*Payment_GetRefund_Call) RunAndReturn ¶
func (_c *Payment_GetRefund_Call) RunAndReturn(run func(context.Context, *payment.GetRefundRequest, ...grpc.CallOption) (*payment.GetRefundResponse, error)) *Payment_GetRefund_Call
type Payment_ListPaymentChannels_Call ¶
Payment_ListPaymentChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPaymentChannels'
func (*Payment_ListPaymentChannels_Call) Return ¶
func (_c *Payment_ListPaymentChannels_Call) Return(_a0 *payment.ListPaymentChannelsResponse, _a1 error) *Payment_ListPaymentChannels_Call
func (*Payment_ListPaymentChannels_Call) Run ¶
func (_c *Payment_ListPaymentChannels_Call) Run(run func(ctx context.Context, in *payment.ListPaymentChannelsRequest, opts ...grpc.CallOption)) *Payment_ListPaymentChannels_Call
func (*Payment_ListPaymentChannels_Call) RunAndReturn ¶
func (_c *Payment_ListPaymentChannels_Call) RunAndReturn(run func(context.Context, *payment.ListPaymentChannelsRequest, ...grpc.CallOption) (*payment.ListPaymentChannelsResponse, error)) *Payment_ListPaymentChannels_Call
type Payment_PaymentNotify_Call ¶
Payment_PaymentNotify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PaymentNotify'
func (*Payment_PaymentNotify_Call) Return ¶
func (_c *Payment_PaymentNotify_Call) Return(_a0 *payment.PaymentNotifyResponse, _a1 error) *Payment_PaymentNotify_Call
func (*Payment_PaymentNotify_Call) Run ¶
func (_c *Payment_PaymentNotify_Call) Run(run func(ctx context.Context, in *payment.PaymentNotifyRequest, opts ...grpc.CallOption)) *Payment_PaymentNotify_Call
func (*Payment_PaymentNotify_Call) RunAndReturn ¶
func (_c *Payment_PaymentNotify_Call) RunAndReturn(run func(context.Context, *payment.PaymentNotifyRequest, ...grpc.CallOption) (*payment.PaymentNotifyResponse, error)) *Payment_PaymentNotify_Call
type Payment_RefundNotify_Call ¶
Payment_RefundNotify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefundNotify'
func (*Payment_RefundNotify_Call) Return ¶
func (_c *Payment_RefundNotify_Call) Return(_a0 *payment.RefundNotifyResponse, _a1 error) *Payment_RefundNotify_Call
func (*Payment_RefundNotify_Call) Run ¶
func (_c *Payment_RefundNotify_Call) Run(run func(ctx context.Context, in *payment.RefundNotifyRequest, opts ...grpc.CallOption)) *Payment_RefundNotify_Call
func (*Payment_RefundNotify_Call) RunAndReturn ¶
func (_c *Payment_RefundNotify_Call) RunAndReturn(run func(context.Context, *payment.RefundNotifyRequest, ...grpc.CallOption) (*payment.RefundNotifyResponse, error)) *Payment_RefundNotify_Call
type Payment_UpdatePaymentChannel_Call ¶
Payment_UpdatePaymentChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePaymentChannel'
func (*Payment_UpdatePaymentChannel_Call) Return ¶
func (_c *Payment_UpdatePaymentChannel_Call) Return(_a0 *payment.UpdatePaymentChannelResponse, _a1 error) *Payment_UpdatePaymentChannel_Call
func (*Payment_UpdatePaymentChannel_Call) Run ¶
func (_c *Payment_UpdatePaymentChannel_Call) Run(run func(ctx context.Context, in *payment.UpdatePaymentChannelRequest, opts ...grpc.CallOption)) *Payment_UpdatePaymentChannel_Call
func (*Payment_UpdatePaymentChannel_Call) RunAndReturn ¶
func (_c *Payment_UpdatePaymentChannel_Call) RunAndReturn(run func(context.Context, *payment.UpdatePaymentChannelRequest, ...grpc.CallOption) (*payment.UpdatePaymentChannelResponse, error)) *Payment_UpdatePaymentChannel_Call
type RefundNotifyLogic ¶
func NewRefundNotifyLogic ¶
func NewRefundNotifyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RefundNotifyLogic
func (*RefundNotifyLogic) RefundNotify ¶
func (l *RefundNotifyLogic) RefundNotify(req *types.RefundNotifyReq) (resp *types.RefundNotifyResp, err error)