service

package
v0.0.0-...-c5d597e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

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

func (m *MockEligibilityService) CreateFilter(arg0 filter.Filter) (filter.Filter, error)

CreateFilter mocks base method

func (*MockEligibilityService) CreateWorkerProfile

CreateWorkerProfile mocks base method

func (*MockEligibilityService) EXPECT

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL