Documentation
¶
Index ¶
- type Repository
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, auditRecord auditrecord.AuditRecord)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(...) *Repository_Create_Call
- type Repository_Expecter
- type Repository_GetByIdempotencyKey_Call
- func (_c *Repository_GetByIdempotencyKey_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_GetByIdempotencyKey_Call
- func (_c *Repository_GetByIdempotencyKey_Call) Run(run func(ctx context.Context, idempotencyKey string)) *Repository_GetByIdempotencyKey_Call
- func (_c *Repository_GetByIdempotencyKey_Call) RunAndReturn(run func(context.Context, string) (auditrecord.AuditRecord, error)) *Repository_GetByIdempotencyKey_Call
- type ServiceUserService
- type ServiceUserService_Expecter
- type ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceUserService_Get_Call
- type UserService
- type UserService_Expecter
- type UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
- type UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) Return(_a0 bool, _a1 error) *UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserService_IsSudo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface {
mock.TestingT
Cleanup(func())
}) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) Create ¶
func (_m *Repository) Create(ctx context.Context, auditRecord auditrecord.AuditRecord) (auditrecord.AuditRecord, error)
Create provides a mock function with given fields: ctx, auditRecord
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) GetByIdempotencyKey ¶
func (_m *Repository) GetByIdempotencyKey(ctx context.Context, idempotencyKey string) (auditrecord.AuditRecord, error)
GetByIdempotencyKey provides a mock function with given fields: ctx, idempotencyKey
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, auditRecord auditrecord.AuditRecord)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, auditrecord.AuditRecord) (auditrecord.AuditRecord, error)) *Repository_Create_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, auditRecord interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- auditRecord auditrecord.AuditRecord
func (*Repository_Expecter) GetByIdempotencyKey ¶
func (_e *Repository_Expecter) GetByIdempotencyKey(ctx interface{}, idempotencyKey interface{}) *Repository_GetByIdempotencyKey_Call
GetByIdempotencyKey is a helper method to define mock.On call
- ctx context.Context
- idempotencyKey string
type Repository_GetByIdempotencyKey_Call ¶
Repository_GetByIdempotencyKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIdempotencyKey'
func (*Repository_GetByIdempotencyKey_Call) Return ¶
func (_c *Repository_GetByIdempotencyKey_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_GetByIdempotencyKey_Call
func (*Repository_GetByIdempotencyKey_Call) Run ¶
func (_c *Repository_GetByIdempotencyKey_Call) Run(run func(ctx context.Context, idempotencyKey string)) *Repository_GetByIdempotencyKey_Call
func (*Repository_GetByIdempotencyKey_Call) RunAndReturn ¶
func (_c *Repository_GetByIdempotencyKey_Call) RunAndReturn(run func(context.Context, string) (auditrecord.AuditRecord, error)) *Repository_GetByIdempotencyKey_Call
type ServiceUserService ¶
ServiceUserService is an autogenerated mock type for the ServiceUserService type
func NewServiceUserService ¶
func NewServiceUserService(t interface {
mock.TestingT
Cleanup(func())
}) *ServiceUserService
NewServiceUserService creates a new instance of ServiceUserService. 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 (*ServiceUserService) EXPECT ¶
func (_m *ServiceUserService) EXPECT() *ServiceUserService_Expecter
func (*ServiceUserService) Get ¶
func (_m *ServiceUserService) Get(ctx context.Context, id string) (serviceuser.ServiceUser, error)
Get provides a mock function with given fields: ctx, id
type ServiceUserService_Expecter ¶
type ServiceUserService_Expecter struct {
// contains filtered or unexported fields
}
func (*ServiceUserService_Expecter) Get ¶
func (_e *ServiceUserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceUserService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
type ServiceUserService_Get_Call ¶
ServiceUserService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ServiceUserService_Get_Call) Return ¶
func (_c *ServiceUserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Get_Call
func (*ServiceUserService_Get_Call) Run ¶
func (_c *ServiceUserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Get_Call
func (*ServiceUserService_Get_Call) RunAndReturn ¶
func (_c *ServiceUserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceUserService_Get_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) GetByID ¶
func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UserService_Expecter) IsSudo ¶
func (_e *UserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *UserService_IsSudo_Call
IsSudo is a helper method to define mock.On call
- ctx context.Context
- id string
- permissionName string
type UserService_GetByID_Call ¶
UserService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UserService_GetByID_Call) Return ¶
func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
func (*UserService_GetByID_Call) Run ¶
func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
func (*UserService_GetByID_Call) RunAndReturn ¶
func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
type UserService_IsSudo_Call ¶
UserService_IsSudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSudo'
func (*UserService_IsSudo_Call) Return ¶
func (_c *UserService_IsSudo_Call) Return(_a0 bool, _a1 error) *UserService_IsSudo_Call
func (*UserService_IsSudo_Call) Run ¶
func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call
func (*UserService_IsSudo_Call) RunAndReturn ¶
func (_c *UserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserService_IsSudo_Call