datastore

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EligibilityStore

type EligibilityStore struct {
	DB *sqlx.DB
}

func NewEligibilityStore

func NewEligibilityStore(db *sqlx.DB) *EligibilityStore

func (*EligibilityStore) CreateFilter

func (s *EligibilityStore) CreateFilter(f filter.Filter) (filter.Filter, error)

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)
}

Jump to

Keyboard shortcuts

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