Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- func New(s datastore.Storage, a authorization.Authorizer) *service
- type EligibilityService
- type MockEligibilityService
- func (m *MockEligibilityService) CreateFilter(arg0 filter.Filter) (filter.Filter, error)
- func (m *MockEligibilityService) CreateWorkerProfile(arg0 workerprofile.NewProfile) (workerprofile.Profile, error)
- func (m *MockEligibilityService) EXPECT() *MockEligibilityServiceMockRecorder
- func (m *MockEligibilityService) GetFilters() (filter.Filters, error)
- func (m *MockEligibilityService) GetWorkerEligibility(workerID string) (eligibility.WorkerEligibility, error)
- func (m *MockEligibilityService) GetWorkerProfile(workerID string) (workerprofile.Profile, error)
- func (m *MockEligibilityService) Healthy() bool
- func (m *MockEligibilityService) SetAuthData(data authentication.AuthData)
- type MockEligibilityServiceMockRecorder
- func (mr *MockEligibilityServiceMockRecorder) CreateFilter(arg0 interface{}) *gomock.Call
- func (mr *MockEligibilityServiceMockRecorder) CreateWorkerProfile(arg0 interface{}) *gomock.Call
- func (mr *MockEligibilityServiceMockRecorder) GetFilters() *gomock.Call
- func (mr *MockEligibilityServiceMockRecorder) GetWorkerEligibility(workerID interface{}) *gomock.Call
- func (mr *MockEligibilityServiceMockRecorder) GetWorkerProfile(workerID interface{}) *gomock.Call
- func (mr *MockEligibilityServiceMockRecorder) Healthy() *gomock.Call
- func (mr *MockEligibilityServiceMockRecorder) SetAuthData(data interface{}) *gomock.Call
- type ProfileNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(s datastore.Storage, a authorization.Authorizer) *service
Types ¶
type EligibilityService ¶
type EligibilityService interface { Healthy() bool GetFilters() (filter.Filters, error) CreateFilter(filter.Filter) (filter.Filter, error) GetWorkerProfile(workerID string) (workerprofile.Profile, error) CreateWorkerProfile(workerprofile.NewProfile) (workerprofile.Profile, error) SetAuthData(data authentication.AuthData) GetWorkerEligibility(workerID string) (eligibility.WorkerEligibility, error) }
type MockEligibilityService ¶
type MockEligibilityService struct {
// contains filtered or unexported fields
}
MockEligibilityService is a mock of EligibilityService interface
func NewMockEligibilityService ¶
func NewMockEligibilityService(ctrl *gomock.Controller) *MockEligibilityService
NewMockEligibilityService creates a new mock instance
func (*MockEligibilityService) CreateFilter ¶
CreateFilter mocks base method
func (*MockEligibilityService) CreateWorkerProfile ¶
func (m *MockEligibilityService) CreateWorkerProfile(arg0 workerprofile.NewProfile) (workerprofile.Profile, error)
CreateWorkerProfile mocks base method
func (*MockEligibilityService) EXPECT ¶
func (m *MockEligibilityService) EXPECT() *MockEligibilityServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEligibilityService) GetFilters ¶
func (m *MockEligibilityService) GetFilters() (filter.Filters, error)
GetFilters mocks base method
func (*MockEligibilityService) GetWorkerEligibility ¶
func (m *MockEligibilityService) GetWorkerEligibility(workerID string) (eligibility.WorkerEligibility, error)
GetWorkerEligibility mocks base method
func (*MockEligibilityService) GetWorkerProfile ¶
func (m *MockEligibilityService) GetWorkerProfile(workerID string) (workerprofile.Profile, error)
GetWorkerProfile mocks base method
func (*MockEligibilityService) Healthy ¶
func (m *MockEligibilityService) Healthy() bool
Healthy mocks base method
func (*MockEligibilityService) SetAuthData ¶
func (m *MockEligibilityService) SetAuthData(data authentication.AuthData)
SetAuthData mocks base method
type MockEligibilityServiceMockRecorder ¶
type MockEligibilityServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockEligibilityServiceMockRecorder is the mock recorder for MockEligibilityService
func (*MockEligibilityServiceMockRecorder) CreateFilter ¶
func (mr *MockEligibilityServiceMockRecorder) CreateFilter(arg0 interface{}) *gomock.Call
CreateFilter indicates an expected call of CreateFilter
func (*MockEligibilityServiceMockRecorder) CreateWorkerProfile ¶
func (mr *MockEligibilityServiceMockRecorder) CreateWorkerProfile(arg0 interface{}) *gomock.Call
CreateWorkerProfile indicates an expected call of CreateWorkerProfile
func (*MockEligibilityServiceMockRecorder) GetFilters ¶
func (mr *MockEligibilityServiceMockRecorder) GetFilters() *gomock.Call
GetFilters indicates an expected call of GetFilters
func (*MockEligibilityServiceMockRecorder) GetWorkerEligibility ¶
func (mr *MockEligibilityServiceMockRecorder) GetWorkerEligibility(workerID interface{}) *gomock.Call
GetWorkerEligibility indicates an expected call of GetWorkerEligibility
func (*MockEligibilityServiceMockRecorder) GetWorkerProfile ¶
func (mr *MockEligibilityServiceMockRecorder) GetWorkerProfile(workerID interface{}) *gomock.Call
GetWorkerProfile indicates an expected call of GetWorkerProfile
func (*MockEligibilityServiceMockRecorder) Healthy ¶
func (mr *MockEligibilityServiceMockRecorder) Healthy() *gomock.Call
Healthy indicates an expected call of Healthy
func (*MockEligibilityServiceMockRecorder) SetAuthData ¶
func (mr *MockEligibilityServiceMockRecorder) SetAuthData(data interface{}) *gomock.Call
SetAuthData indicates an expected call of SetAuthData
type ProfileNotFound ¶
type ProfileNotFound struct {
WorkerID string
}
func (*ProfileNotFound) Error ¶
func (err *ProfileNotFound) Error() string