Documentation ¶
Index ¶
- type EligibilityStore
- func (s *EligibilityStore) CreateFilter(f filter.Filter) (filter.Filter, error)
- func (s *EligibilityStore) CreateWorkerProfile(wp workerprofile.NewProfile) (workerprofile.Profile, error)
- func (s *EligibilityStore) GetAllFilters(ids []int) (filter.Filters, error)
- func (s *EligibilityStore) GetWorkerEligibility(workerID string) (filter.FilterWorker, []filter.FilterJob, error)
- func (s *EligibilityStore) GetWorkerProfile(workerID string) (workerprofile.Profile, error)
- type FilterNotFound
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EligibilityStore ¶
func NewEligibilityStore ¶
func NewEligibilityStore(db *sqlx.DB) *EligibilityStore
func (*EligibilityStore) CreateFilter ¶
func (*EligibilityStore) CreateWorkerProfile ¶
func (s *EligibilityStore) CreateWorkerProfile(wp workerprofile.NewProfile) (workerprofile.Profile, error)
func (*EligibilityStore) GetAllFilters ¶
func (s *EligibilityStore) GetAllFilters(ids []int) (filter.Filters, error)
func (*EligibilityStore) GetWorkerEligibility ¶
func (s *EligibilityStore) GetWorkerEligibility(workerID string) (filter.FilterWorker, []filter.FilterJob, error)
func (*EligibilityStore) GetWorkerProfile ¶
func (s *EligibilityStore) GetWorkerProfile(workerID string) (workerprofile.Profile, error)
type FilterNotFound ¶
type FilterNotFound struct {
// contains filtered or unexported fields
}
func (FilterNotFound) Error ¶
func (err FilterNotFound) Error() string
type Storage ¶
type Storage interface { GetAllFilters(ids []int) (filter.Filters, error) CreateFilter(filter.Filter) (filter.Filter, error) GetWorkerProfile(workerID string) (workerprofile.Profile, error) CreateWorkerProfile(wp workerprofile.NewProfile) (workerprofile.Profile, error) GetWorkerEligibility(workerID string) (filter.FilterWorker, []filter.FilterJob, error) }
Click to show internal directories.
Click to hide internal directories.