Documentation
¶
Index ¶
- type CheckoutService
- type CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) Return(_a0 *subscription.Subscription, _a1 *product.Product, _a2 error) *CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) RunAndReturn(...) *CheckoutService_Apply_Call
- type CheckoutService_Expecter
- type CheckoutService_TriggerSyncByProviderID_Call
- func (_c *CheckoutService_TriggerSyncByProviderID_Call) Return(_a0 error) *CheckoutService_TriggerSyncByProviderID_Call
- func (_c *CheckoutService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *CheckoutService_TriggerSyncByProviderID_Call
- func (_c *CheckoutService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *CheckoutService_TriggerSyncByProviderID_Call
- type CreditService
- type CreditService_Add_Call
- func (_c *CreditService_Add_Call) Return(_a0 error) *CreditService_Add_Call
- func (_c *CreditService_Add_Call) Run(run func(ctx context.Context, ch credit.Credit)) *CreditService_Add_Call
- func (_c *CreditService_Add_Call) RunAndReturn(run func(context.Context, credit.Credit) error) *CreditService_Add_Call
- type CreditService_Expecter
- type CustomerService
- func (_m *CustomerService) Create(ctx context.Context, _a1 customer.Customer, offline bool) (customer.Customer, error)
- func (_m *CustomerService) EXPECT() *CustomerService_Expecter
- func (_m *CustomerService) List(ctx context.Context, flt customer.Filter) ([]customer.Customer, error)
- func (_m *CustomerService) TriggerSyncByProviderID(ctx context.Context, id string) error
- type CustomerService_Create_Call
- func (_c *CustomerService_Create_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_Create_Call
- func (_c *CustomerService_Create_Call) Run(run func(ctx context.Context, _a1 customer.Customer, offline bool)) *CustomerService_Create_Call
- func (_c *CustomerService_Create_Call) RunAndReturn(run func(context.Context, customer.Customer, bool) (customer.Customer, error)) *CustomerService_Create_Call
- type CustomerService_Expecter
- func (_e *CustomerService_Expecter) Create(ctx interface{}, _a1 interface{}, offline interface{}) *CustomerService_Create_Call
- func (_e *CustomerService_Expecter) List(ctx interface{}, flt interface{}) *CustomerService_List_Call
- func (_e *CustomerService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *CustomerService_TriggerSyncByProviderID_Call
- type CustomerService_List_Call
- func (_c *CustomerService_List_Call) Return(_a0 []customer.Customer, _a1 error) *CustomerService_List_Call
- func (_c *CustomerService_List_Call) Run(run func(ctx context.Context, flt customer.Filter)) *CustomerService_List_Call
- func (_c *CustomerService_List_Call) RunAndReturn(run func(context.Context, customer.Filter) ([]customer.Customer, error)) *CustomerService_List_Call
- type CustomerService_TriggerSyncByProviderID_Call
- func (_c *CustomerService_TriggerSyncByProviderID_Call) Return(_a0 error) *CustomerService_TriggerSyncByProviderID_Call
- func (_c *CustomerService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *CustomerService_TriggerSyncByProviderID_Call
- func (_c *CustomerService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_TriggerSyncByProviderID_Call
- type InvoiceService
- type InvoiceService_Expecter
- type InvoiceService_TriggerSyncByProviderID_Call
- func (_c *InvoiceService_TriggerSyncByProviderID_Call) Return(_a0 error) *InvoiceService_TriggerSyncByProviderID_Call
- func (_c *InvoiceService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *InvoiceService_TriggerSyncByProviderID_Call
- func (_c *InvoiceService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *InvoiceService_TriggerSyncByProviderID_Call
- type OrganizationService
- type OrganizationService_Expecter
- type OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
- type PlanService
- type PlanService_Expecter
- type PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
- type SubscriptionService
- type SubscriptionService_Expecter
- type SubscriptionService_TriggerSyncByProviderID_Call
- func (_c *SubscriptionService_TriggerSyncByProviderID_Call) Return(_a0 error) *SubscriptionService_TriggerSyncByProviderID_Call
- func (_c *SubscriptionService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *SubscriptionService_TriggerSyncByProviderID_Call
- func (_c *SubscriptionService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *SubscriptionService_TriggerSyncByProviderID_Call
- type UserService
- type UserService_Expecter
- type UserService_ListByOrg_Call
- func (_c *UserService_ListByOrg_Call) Return(_a0 []user.User, _a1 error) *UserService_ListByOrg_Call
- func (_c *UserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string, roleFilter string)) *UserService_ListByOrg_Call
- func (_c *UserService_ListByOrg_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *UserService_ListByOrg_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckoutService ¶
CheckoutService is an autogenerated mock type for the CheckoutService type
func NewCheckoutService ¶
func NewCheckoutService(t interface { mock.TestingT Cleanup(func()) }) *CheckoutService
NewCheckoutService creates a new instance of CheckoutService. 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 (*CheckoutService) Apply ¶
func (_m *CheckoutService) Apply(ctx context.Context, ch checkout.Checkout) (*subscription.Subscription, *product.Product, error)
Apply provides a mock function with given fields: ctx, ch
func (*CheckoutService) EXPECT ¶
func (_m *CheckoutService) EXPECT() *CheckoutService_Expecter
func (*CheckoutService) TriggerSyncByProviderID ¶
func (_m *CheckoutService) TriggerSyncByProviderID(ctx context.Context, id string) error
TriggerSyncByProviderID provides a mock function with given fields: ctx, id
type CheckoutService_Apply_Call ¶
CheckoutService_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*CheckoutService_Apply_Call) Return ¶
func (_c *CheckoutService_Apply_Call) Return(_a0 *subscription.Subscription, _a1 *product.Product, _a2 error) *CheckoutService_Apply_Call
func (*CheckoutService_Apply_Call) Run ¶
func (_c *CheckoutService_Apply_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Apply_Call
func (*CheckoutService_Apply_Call) RunAndReturn ¶
func (_c *CheckoutService_Apply_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (*subscription.Subscription, *product.Product, error)) *CheckoutService_Apply_Call
type CheckoutService_Expecter ¶
type CheckoutService_Expecter struct {
// contains filtered or unexported fields
}
func (*CheckoutService_Expecter) Apply ¶
func (_e *CheckoutService_Expecter) Apply(ctx interface{}, ch interface{}) *CheckoutService_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) TriggerSyncByProviderID ¶
func (_e *CheckoutService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *CheckoutService_TriggerSyncByProviderID_Call
TriggerSyncByProviderID is a helper method to define mock.On call
- ctx context.Context
- id string
type CheckoutService_TriggerSyncByProviderID_Call ¶
CheckoutService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'
func (*CheckoutService_TriggerSyncByProviderID_Call) Return ¶
func (_c *CheckoutService_TriggerSyncByProviderID_Call) Return(_a0 error) *CheckoutService_TriggerSyncByProviderID_Call
func (*CheckoutService_TriggerSyncByProviderID_Call) Run ¶
func (_c *CheckoutService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *CheckoutService_TriggerSyncByProviderID_Call
func (*CheckoutService_TriggerSyncByProviderID_Call) RunAndReturn ¶
func (_c *CheckoutService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *CheckoutService_TriggerSyncByProviderID_Call
type CreditService ¶
CreditService is an autogenerated mock type for the CreditService type
func NewCreditService ¶
func NewCreditService(t interface { mock.TestingT Cleanup(func()) }) *CreditService
NewCreditService creates a new instance of CreditService. 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 (*CreditService) EXPECT ¶
func (_m *CreditService) EXPECT() *CreditService_Expecter
type CreditService_Add_Call ¶
CreditService_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*CreditService_Add_Call) Return ¶
func (_c *CreditService_Add_Call) Return(_a0 error) *CreditService_Add_Call
func (*CreditService_Add_Call) Run ¶
func (_c *CreditService_Add_Call) Run(run func(ctx context.Context, ch credit.Credit)) *CreditService_Add_Call
func (*CreditService_Add_Call) RunAndReturn ¶
func (_c *CreditService_Add_Call) RunAndReturn(run func(context.Context, credit.Credit) error) *CreditService_Add_Call
type CreditService_Expecter ¶
type CreditService_Expecter struct {
// contains filtered or unexported fields
}
func (*CreditService_Expecter) Add ¶
func (_e *CreditService_Expecter) Add(ctx interface{}, ch interface{}) *CreditService_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- ch credit.Credit
type CustomerService ¶
CustomerService is an autogenerated mock type for the CustomerService type
func NewCustomerService ¶
func NewCustomerService(t interface { mock.TestingT Cleanup(func()) }) *CustomerService
NewCustomerService creates a new instance of CustomerService. 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 (*CustomerService) Create ¶
func (_m *CustomerService) Create(ctx context.Context, _a1 customer.Customer, offline bool) (customer.Customer, error)
Create provides a mock function with given fields: ctx, _a1, offline
func (*CustomerService) EXPECT ¶
func (_m *CustomerService) EXPECT() *CustomerService_Expecter
func (*CustomerService) List ¶
func (_m *CustomerService) List(ctx context.Context, flt customer.Filter) ([]customer.Customer, error)
List provides a mock function with given fields: ctx, flt
func (*CustomerService) TriggerSyncByProviderID ¶
func (_m *CustomerService) TriggerSyncByProviderID(ctx context.Context, id string) error
TriggerSyncByProviderID provides a mock function with given fields: ctx, id
type CustomerService_Create_Call ¶
CustomerService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*CustomerService_Create_Call) Return ¶
func (_c *CustomerService_Create_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_Create_Call
func (*CustomerService_Create_Call) Run ¶
func (_c *CustomerService_Create_Call) Run(run func(ctx context.Context, _a1 customer.Customer, offline bool)) *CustomerService_Create_Call
func (*CustomerService_Create_Call) RunAndReturn ¶
func (_c *CustomerService_Create_Call) RunAndReturn(run func(context.Context, customer.Customer, bool) (customer.Customer, error)) *CustomerService_Create_Call
type CustomerService_Expecter ¶
type CustomerService_Expecter struct {
// contains filtered or unexported fields
}
func (*CustomerService_Expecter) Create ¶
func (_e *CustomerService_Expecter) Create(ctx interface{}, _a1 interface{}, offline interface{}) *CustomerService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 customer.Customer
- offline bool
func (*CustomerService_Expecter) List ¶
func (_e *CustomerService_Expecter) List(ctx interface{}, flt interface{}) *CustomerService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt customer.Filter
func (*CustomerService_Expecter) TriggerSyncByProviderID ¶
func (_e *CustomerService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *CustomerService_TriggerSyncByProviderID_Call
TriggerSyncByProviderID is a helper method to define mock.On call
- ctx context.Context
- id string
type CustomerService_List_Call ¶
CustomerService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CustomerService_List_Call) Return ¶
func (_c *CustomerService_List_Call) Return(_a0 []customer.Customer, _a1 error) *CustomerService_List_Call
func (*CustomerService_List_Call) Run ¶
func (_c *CustomerService_List_Call) Run(run func(ctx context.Context, flt customer.Filter)) *CustomerService_List_Call
func (*CustomerService_List_Call) RunAndReturn ¶
func (_c *CustomerService_List_Call) RunAndReturn(run func(context.Context, customer.Filter) ([]customer.Customer, error)) *CustomerService_List_Call
type CustomerService_TriggerSyncByProviderID_Call ¶
CustomerService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'
func (*CustomerService_TriggerSyncByProviderID_Call) Return ¶
func (_c *CustomerService_TriggerSyncByProviderID_Call) Return(_a0 error) *CustomerService_TriggerSyncByProviderID_Call
func (*CustomerService_TriggerSyncByProviderID_Call) Run ¶
func (_c *CustomerService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *CustomerService_TriggerSyncByProviderID_Call
func (*CustomerService_TriggerSyncByProviderID_Call) RunAndReturn ¶
func (_c *CustomerService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_TriggerSyncByProviderID_Call
type InvoiceService ¶ added in v0.45.0
InvoiceService is an autogenerated mock type for the InvoiceService type
func NewInvoiceService ¶ added in v0.45.0
func NewInvoiceService(t interface { mock.TestingT Cleanup(func()) }) *InvoiceService
NewInvoiceService creates a new instance of InvoiceService. 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 (*InvoiceService) EXPECT ¶ added in v0.45.0
func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
func (*InvoiceService) TriggerSyncByProviderID ¶ added in v0.45.0
func (_m *InvoiceService) TriggerSyncByProviderID(ctx context.Context, id string) error
TriggerSyncByProviderID provides a mock function with given fields: ctx, id
type InvoiceService_Expecter ¶ added in v0.45.0
type InvoiceService_Expecter struct {
// contains filtered or unexported fields
}
func (*InvoiceService_Expecter) TriggerSyncByProviderID ¶ added in v0.45.0
func (_e *InvoiceService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *InvoiceService_TriggerSyncByProviderID_Call
TriggerSyncByProviderID is a helper method to define mock.On call
- ctx context.Context
- id string
type InvoiceService_TriggerSyncByProviderID_Call ¶ added in v0.45.0
InvoiceService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'
func (*InvoiceService_TriggerSyncByProviderID_Call) Return ¶ added in v0.45.0
func (_c *InvoiceService_TriggerSyncByProviderID_Call) Return(_a0 error) *InvoiceService_TriggerSyncByProviderID_Call
func (*InvoiceService_TriggerSyncByProviderID_Call) Run ¶ added in v0.45.0
func (_c *InvoiceService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *InvoiceService_TriggerSyncByProviderID_Call
func (*InvoiceService_TriggerSyncByProviderID_Call) RunAndReturn ¶ added in v0.45.0
func (_c *InvoiceService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *InvoiceService_TriggerSyncByProviderID_Call
type OrganizationService ¶
OrganizationService is an autogenerated mock type for the OrganizationService type
func NewOrganizationService ¶
func NewOrganizationService(t interface { mock.TestingT Cleanup(func()) }) *OrganizationService
NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) EXPECT ¶
func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
func (*OrganizationService) GetRaw ¶
func (_m *OrganizationService) GetRaw(ctx context.Context, id string) (organization.Organization, error)
GetRaw provides a mock function with given fields: ctx, id
type OrganizationService_Expecter ¶
type OrganizationService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrganizationService_Expecter) GetRaw ¶
func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, id interface{}) *OrganizationService_GetRaw_Call
GetRaw is a helper method to define mock.On call
- ctx context.Context
- id string
type OrganizationService_GetRaw_Call ¶
OrganizationService_GetRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRaw'
func (*OrganizationService_GetRaw_Call) Return ¶
func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) Run ¶
func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) RunAndReturn ¶
func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
type PlanService ¶
PlanService is an autogenerated mock type for the PlanService type
func NewPlanService ¶
func NewPlanService(t interface { mock.TestingT Cleanup(func()) }) *PlanService
NewPlanService creates a new instance of PlanService. 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 (*PlanService) EXPECT ¶
func (_m *PlanService) EXPECT() *PlanService_Expecter
type PlanService_Expecter ¶
type PlanService_Expecter struct {
// contains filtered or unexported fields
}
func (*PlanService_Expecter) GetByID ¶
func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
type PlanService_GetByID_Call ¶
PlanService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*PlanService_GetByID_Call) Return ¶
func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) Run ¶
func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) RunAndReturn ¶
func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
type SubscriptionService ¶
SubscriptionService is an autogenerated mock type for the SubscriptionService type
func NewSubscriptionService ¶
func NewSubscriptionService(t interface { mock.TestingT Cleanup(func()) }) *SubscriptionService
NewSubscriptionService creates a new instance of SubscriptionService. 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 (*SubscriptionService) EXPECT ¶
func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
func (*SubscriptionService) TriggerSyncByProviderID ¶
func (_m *SubscriptionService) TriggerSyncByProviderID(ctx context.Context, id string) error
TriggerSyncByProviderID provides a mock function with given fields: ctx, id
type SubscriptionService_Expecter ¶
type SubscriptionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionService_Expecter) TriggerSyncByProviderID ¶
func (_e *SubscriptionService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *SubscriptionService_TriggerSyncByProviderID_Call
TriggerSyncByProviderID is a helper method to define mock.On call
- ctx context.Context
- id string
type SubscriptionService_TriggerSyncByProviderID_Call ¶
SubscriptionService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'
func (*SubscriptionService_TriggerSyncByProviderID_Call) Return ¶
func (_c *SubscriptionService_TriggerSyncByProviderID_Call) Return(_a0 error) *SubscriptionService_TriggerSyncByProviderID_Call
func (*SubscriptionService_TriggerSyncByProviderID_Call) Run ¶
func (_c *SubscriptionService_TriggerSyncByProviderID_Call) Run(run func(ctx context.Context, id string)) *SubscriptionService_TriggerSyncByProviderID_Call
func (*SubscriptionService_TriggerSyncByProviderID_Call) RunAndReturn ¶
func (_c *SubscriptionService_TriggerSyncByProviderID_Call) RunAndReturn(run func(context.Context, string) error) *SubscriptionService_TriggerSyncByProviderID_Call
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t interface { mock.TestingT Cleanup(func()) }) *UserService
NewUserService creates a new instance of UserService. 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 (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) ListByOrg ¶
func (_e *UserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}, roleFilter interface{}) *UserService_ListByOrg_Call
ListByOrg is a helper method to define mock.On call
- ctx context.Context
- orgID string
- roleFilter string
type UserService_ListByOrg_Call ¶
UserService_ListByOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByOrg'
func (*UserService_ListByOrg_Call) Return ¶
func (_c *UserService_ListByOrg_Call) Return(_a0 []user.User, _a1 error) *UserService_ListByOrg_Call
func (*UserService_ListByOrg_Call) Run ¶
func (_c *UserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string, roleFilter string)) *UserService_ListByOrg_Call
func (*UserService_ListByOrg_Call) RunAndReturn ¶
func (_c *UserService_ListByOrg_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *UserService_ListByOrg_Call