Documentation ¶
Index ¶
- type Auth
- type AuthInteractor
- type DelayInteractor
- type DelayJob
- type Healthcheck
- type HealthcheckInteractor
- type JwtCustomClaims
- type MockHealthcheck
- type MockHealthcheck_Execute_Call
- func (_c *MockHealthcheck_Execute_Call) Return(_a0 error) *MockHealthcheck_Execute_Call
- func (_c *MockHealthcheck_Execute_Call) Run(run func(ctx context.Context)) *MockHealthcheck_Execute_Call
- func (_c *MockHealthcheck_Execute_Call) RunAndReturn(run func(context.Context) error) *MockHealthcheck_Execute_Call
- type MockHealthcheck_Expecter
- type MockProfile
- func (_m *MockProfile) EXPECT() *MockProfile_Expecter
- func (_m *MockProfile) GetProfile(ctx context.Context, id int64) (*model.Profile, error)
- func (_m *MockProfile) ListProfiles(ctx context.Context, query *request.QueryParams) (*response.ListResponse[*model.Profile], error)
- func (_m *MockProfile) RemoveProfile(ctx context.Context, id int64) error
- func (_m *MockProfile) SaveProfile(ctx context.Context, req *model.ProfileRequest) (*model.Profile, error)
- func (_m *MockProfile) UpdateProfile(ctx context.Context, id int64, req *model.ProfileRequest) (*model.Profile, error)
- type MockProfile_Expecter
- func (_e *MockProfile_Expecter) GetProfile(ctx interface{}, id interface{}) *MockProfile_GetProfile_Call
- func (_e *MockProfile_Expecter) ListProfiles(ctx interface{}, query interface{}) *MockProfile_ListProfiles_Call
- func (_e *MockProfile_Expecter) RemoveProfile(ctx interface{}, id interface{}) *MockProfile_RemoveProfile_Call
- func (_e *MockProfile_Expecter) SaveProfile(ctx interface{}, req interface{}) *MockProfile_SaveProfile_Call
- func (_e *MockProfile_Expecter) UpdateProfile(ctx interface{}, id interface{}, req interface{}) *MockProfile_UpdateProfile_Call
- type MockProfile_GetProfile_Call
- func (_c *MockProfile_GetProfile_Call) Return(_a0 *model.Profile, _a1 error) *MockProfile_GetProfile_Call
- func (_c *MockProfile_GetProfile_Call) Run(run func(ctx context.Context, id int64)) *MockProfile_GetProfile_Call
- func (_c *MockProfile_GetProfile_Call) RunAndReturn(run func(context.Context, int64) (*model.Profile, error)) *MockProfile_GetProfile_Call
- type MockProfile_ListProfiles_Call
- func (_c *MockProfile_ListProfiles_Call) Return(_a0 *response.ListResponse[*model.Profile], _a1 error) *MockProfile_ListProfiles_Call
- func (_c *MockProfile_ListProfiles_Call) Run(run func(ctx context.Context, query *request.QueryParams)) *MockProfile_ListProfiles_Call
- func (_c *MockProfile_ListProfiles_Call) RunAndReturn(...) *MockProfile_ListProfiles_Call
- type MockProfile_RemoveProfile_Call
- func (_c *MockProfile_RemoveProfile_Call) Return(_a0 error) *MockProfile_RemoveProfile_Call
- func (_c *MockProfile_RemoveProfile_Call) Run(run func(ctx context.Context, id int64)) *MockProfile_RemoveProfile_Call
- func (_c *MockProfile_RemoveProfile_Call) RunAndReturn(run func(context.Context, int64) error) *MockProfile_RemoveProfile_Call
- type MockProfile_SaveProfile_Call
- func (_c *MockProfile_SaveProfile_Call) Return(_a0 *model.Profile, _a1 error) *MockProfile_SaveProfile_Call
- func (_c *MockProfile_SaveProfile_Call) Run(run func(ctx context.Context, req *model.ProfileRequest)) *MockProfile_SaveProfile_Call
- func (_c *MockProfile_SaveProfile_Call) RunAndReturn(run func(context.Context, *model.ProfileRequest) (*model.Profile, error)) *MockProfile_SaveProfile_Call
- type MockProfile_UpdateProfile_Call
- func (_c *MockProfile_UpdateProfile_Call) Return(_a0 *model.Profile, _a1 error) *MockProfile_UpdateProfile_Call
- func (_c *MockProfile_UpdateProfile_Call) Run(run func(ctx context.Context, id int64, req *model.ProfileRequest)) *MockProfile_UpdateProfile_Call
- func (_c *MockProfile_UpdateProfile_Call) RunAndReturn(...) *MockProfile_UpdateProfile_Call
- type Option
- type Profile
- type ProfileInteractor
- func (u *ProfileInteractor) GetProfile(ctx context.Context, id int64) (*model.Profile, error)
- func (u *ProfileInteractor) ListProfiles(ctx context.Context, query *request.QueryParams) (*response.ListResponse[*model.Profile], error)
- func (u *ProfileInteractor) RemoveProfile(ctx context.Context, id int64) error
- func (u *ProfileInteractor) SaveProfile(ctx context.Context, req *model.ProfileRequest) (*model.Profile, error)
- func (u *ProfileInteractor) UpdateProfile(ctx context.Context, id int64, req *model.ProfileRequest) (*model.Profile, error)
- type Timers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInteractor ¶
type AuthInteractor struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(jwtSecret []byte) *AuthInteractor
type DelayInteractor ¶
type DelayInteractor struct {
// contains filtered or unexported fields
}
func NewDelay ¶
func NewDelay() *DelayInteractor
type Healthcheck ¶
type HealthcheckInteractor ¶
type HealthcheckInteractor struct {
// contains filtered or unexported fields
}
func NewHealthcheck ¶
func NewHealthcheck(repo repository.HealthcheckRepo) *HealthcheckInteractor
type JwtCustomClaims ¶
type JwtCustomClaims struct { jwt.RegisteredClaims User string `json:"user"` }
type MockHealthcheck ¶
MockHealthcheck is an autogenerated mock type for the Healthcheck type
func NewMockHealthcheck ¶
func NewMockHealthcheck(t interface { mock.TestingT Cleanup(func()) }) *MockHealthcheck
NewMockHealthcheck creates a new instance of MockHealthcheck. 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 (*MockHealthcheck) EXPECT ¶
func (_m *MockHealthcheck) EXPECT() *MockHealthcheck_Expecter
type MockHealthcheck_Execute_Call ¶
MockHealthcheck_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockHealthcheck_Execute_Call) Return ¶
func (_c *MockHealthcheck_Execute_Call) Return(_a0 error) *MockHealthcheck_Execute_Call
func (*MockHealthcheck_Execute_Call) Run ¶
func (_c *MockHealthcheck_Execute_Call) Run(run func(ctx context.Context)) *MockHealthcheck_Execute_Call
func (*MockHealthcheck_Execute_Call) RunAndReturn ¶
func (_c *MockHealthcheck_Execute_Call) RunAndReturn(run func(context.Context) error) *MockHealthcheck_Execute_Call
type MockHealthcheck_Expecter ¶
type MockHealthcheck_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHealthcheck_Expecter) Execute ¶
func (_e *MockHealthcheck_Expecter) Execute(ctx interface{}) *MockHealthcheck_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
type MockProfile ¶
MockProfile is an autogenerated mock type for the Profile type
func NewMockProfile ¶
func NewMockProfile(t interface { mock.TestingT Cleanup(func()) }) *MockProfile
NewMockProfile creates a new instance of MockProfile. 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 (*MockProfile) EXPECT ¶
func (_m *MockProfile) EXPECT() *MockProfile_Expecter
func (*MockProfile) GetProfile ¶
GetProfile provides a mock function with given fields: ctx, id
func (*MockProfile) ListProfiles ¶
func (_m *MockProfile) ListProfiles(ctx context.Context, query *request.QueryParams) (*response.ListResponse[*model.Profile], error)
ListProfiles provides a mock function with given fields: ctx, query
func (*MockProfile) RemoveProfile ¶
func (_m *MockProfile) RemoveProfile(ctx context.Context, id int64) error
RemoveProfile provides a mock function with given fields: ctx, id
func (*MockProfile) SaveProfile ¶
func (_m *MockProfile) SaveProfile(ctx context.Context, req *model.ProfileRequest) (*model.Profile, error)
SaveProfile provides a mock function with given fields: ctx, req
func (*MockProfile) UpdateProfile ¶
func (_m *MockProfile) UpdateProfile(ctx context.Context, id int64, req *model.ProfileRequest) (*model.Profile, error)
UpdateProfile provides a mock function with given fields: ctx, id, req
type MockProfile_Expecter ¶
type MockProfile_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProfile_Expecter) GetProfile ¶
func (_e *MockProfile_Expecter) GetProfile(ctx interface{}, id interface{}) *MockProfile_GetProfile_Call
GetProfile is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*MockProfile_Expecter) ListProfiles ¶
func (_e *MockProfile_Expecter) ListProfiles(ctx interface{}, query interface{}) *MockProfile_ListProfiles_Call
ListProfiles is a helper method to define mock.On call
- ctx context.Context
- query *request.QueryParams
func (*MockProfile_Expecter) RemoveProfile ¶
func (_e *MockProfile_Expecter) RemoveProfile(ctx interface{}, id interface{}) *MockProfile_RemoveProfile_Call
RemoveProfile is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*MockProfile_Expecter) SaveProfile ¶
func (_e *MockProfile_Expecter) SaveProfile(ctx interface{}, req interface{}) *MockProfile_SaveProfile_Call
SaveProfile is a helper method to define mock.On call
- ctx context.Context
- req *model.ProfileRequest
func (*MockProfile_Expecter) UpdateProfile ¶
func (_e *MockProfile_Expecter) UpdateProfile(ctx interface{}, id interface{}, req interface{}) *MockProfile_UpdateProfile_Call
UpdateProfile is a helper method to define mock.On call
- ctx context.Context
- id int64
- req *model.ProfileRequest
type MockProfile_GetProfile_Call ¶
MockProfile_GetProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProfile'
func (*MockProfile_GetProfile_Call) Return ¶
func (_c *MockProfile_GetProfile_Call) Return(_a0 *model.Profile, _a1 error) *MockProfile_GetProfile_Call
func (*MockProfile_GetProfile_Call) Run ¶
func (_c *MockProfile_GetProfile_Call) Run(run func(ctx context.Context, id int64)) *MockProfile_GetProfile_Call
func (*MockProfile_GetProfile_Call) RunAndReturn ¶
func (_c *MockProfile_GetProfile_Call) RunAndReturn(run func(context.Context, int64) (*model.Profile, error)) *MockProfile_GetProfile_Call
type MockProfile_ListProfiles_Call ¶
MockProfile_ListProfiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProfiles'
func (*MockProfile_ListProfiles_Call) Return ¶
func (_c *MockProfile_ListProfiles_Call) Return(_a0 *response.ListResponse[*model.Profile], _a1 error) *MockProfile_ListProfiles_Call
func (*MockProfile_ListProfiles_Call) Run ¶
func (_c *MockProfile_ListProfiles_Call) Run(run func(ctx context.Context, query *request.QueryParams)) *MockProfile_ListProfiles_Call
func (*MockProfile_ListProfiles_Call) RunAndReturn ¶
func (_c *MockProfile_ListProfiles_Call) RunAndReturn(run func(context.Context, *request.QueryParams) (*response.ListResponse[*model.Profile], error)) *MockProfile_ListProfiles_Call
type MockProfile_RemoveProfile_Call ¶
MockProfile_RemoveProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveProfile'
func (*MockProfile_RemoveProfile_Call) Return ¶
func (_c *MockProfile_RemoveProfile_Call) Return(_a0 error) *MockProfile_RemoveProfile_Call
func (*MockProfile_RemoveProfile_Call) Run ¶
func (_c *MockProfile_RemoveProfile_Call) Run(run func(ctx context.Context, id int64)) *MockProfile_RemoveProfile_Call
func (*MockProfile_RemoveProfile_Call) RunAndReturn ¶
func (_c *MockProfile_RemoveProfile_Call) RunAndReturn(run func(context.Context, int64) error) *MockProfile_RemoveProfile_Call
type MockProfile_SaveProfile_Call ¶
MockProfile_SaveProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveProfile'
func (*MockProfile_SaveProfile_Call) Return ¶
func (_c *MockProfile_SaveProfile_Call) Return(_a0 *model.Profile, _a1 error) *MockProfile_SaveProfile_Call
func (*MockProfile_SaveProfile_Call) Run ¶
func (_c *MockProfile_SaveProfile_Call) Run(run func(ctx context.Context, req *model.ProfileRequest)) *MockProfile_SaveProfile_Call
func (*MockProfile_SaveProfile_Call) RunAndReturn ¶
func (_c *MockProfile_SaveProfile_Call) RunAndReturn(run func(context.Context, *model.ProfileRequest) (*model.Profile, error)) *MockProfile_SaveProfile_Call
type MockProfile_UpdateProfile_Call ¶
MockProfile_UpdateProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProfile'
func (*MockProfile_UpdateProfile_Call) Return ¶
func (_c *MockProfile_UpdateProfile_Call) Return(_a0 *model.Profile, _a1 error) *MockProfile_UpdateProfile_Call
func (*MockProfile_UpdateProfile_Call) Run ¶
func (_c *MockProfile_UpdateProfile_Call) Run(run func(ctx context.Context, id int64, req *model.ProfileRequest)) *MockProfile_UpdateProfile_Call
func (*MockProfile_UpdateProfile_Call) RunAndReturn ¶
func (_c *MockProfile_UpdateProfile_Call) RunAndReturn(run func(context.Context, int64, *model.ProfileRequest) (*model.Profile, error)) *MockProfile_UpdateProfile_Call
type Profile ¶
type Profile interface { GetProfile(ctx context.Context, id int64) (*model.Profile, error) ListProfiles(ctx context.Context, query *request.QueryParams) (*response.ListResponse[*model.Profile], error) SaveProfile(ctx context.Context, req *model.ProfileRequest) (*model.Profile, error) UpdateProfile(ctx context.Context, id int64, req *model.ProfileRequest) (*model.Profile, error) RemoveProfile(ctx context.Context, id int64) error }
type ProfileInteractor ¶
type ProfileInteractor struct {
// contains filtered or unexported fields
}
func NewProfile ¶
func NewProfile(uow uow.UnitOfWork) *ProfileInteractor
func (*ProfileInteractor) GetProfile ¶
func (*ProfileInteractor) ListProfiles ¶
func (u *ProfileInteractor) ListProfiles(ctx context.Context, query *request.QueryParams) (*response.ListResponse[*model.Profile], error)
func (*ProfileInteractor) RemoveProfile ¶
func (u *ProfileInteractor) RemoveProfile(ctx context.Context, id int64) error
func (*ProfileInteractor) SaveProfile ¶
func (u *ProfileInteractor) SaveProfile(ctx context.Context, req *model.ProfileRequest) (*model.Profile, error)
func (*ProfileInteractor) UpdateProfile ¶
func (u *ProfileInteractor) UpdateProfile(ctx context.Context, id int64, req *model.ProfileRequest) (*model.Profile, error)