Documentation ¶
Index ¶
- type SolverStoreMemory
- func (s *SolverStoreMemory) AddDeal(deal dto.DealContainer) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) AddJobOffer(jobOffer dto.JobOfferContainer) (*dto.JobOfferContainer, error)
- func (s *SolverStoreMemory) AddMatchDecision(resourceOffer string, jobOffer string, deal string, result bool) (*dto.MatchDecision, error)
- func (s *SolverStoreMemory) AddResourceOffer(resourceOffer dto.ResourceOfferContainer) (*dto.ResourceOfferContainer, error)
- func (s *SolverStoreMemory) AddResult(result dto.Result) (*dto.Result, error)
- func (s *SolverStoreMemory) GetDeal(id string) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) GetDeals(query store.GetDealsQuery) ([]dto.DealContainer, error)
- func (s *SolverStoreMemory) GetJobOffer(id string) (*dto.JobOfferContainer, error)
- func (s *SolverStoreMemory) GetJobOffers(query store.GetJobOffersQuery) ([]dto.JobOfferContainer, error)
- func (s *SolverStoreMemory) GetMatchDecision(resourceOffer string, jobOffer string) (*dto.MatchDecision, error)
- func (s *SolverStoreMemory) GetResourceOffer(id string) (*dto.ResourceOfferContainer, error)
- func (s *SolverStoreMemory) GetResourceOffers(query store.GetResourceOffersQuery) ([]dto.ResourceOfferContainer, error)
- func (s *SolverStoreMemory) GetResult(id string) (*dto.Result, error)
- func (s *SolverStoreMemory) RemoveJobOffer(id string) error
- func (s *SolverStoreMemory) RemoveResourceOffer(id string) error
- func (s *SolverStoreMemory) UpdateDealMediator(id string, mediator string) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealState(id string, state uint8) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealTransactionsJobCreator(id string, data dto.DealTransactionsJobCreator) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealTransactionsMediator(id string, data dto.DealTransactionsMediator) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealTransactionsResourceProvider(id string, data dto.DealTransactionsResourceProvider) (*dto.DealContainer, error)
- func (s *SolverStoreMemory) UpdateJobOfferState(id string, dealID string, state uint8) (*dto.JobOfferContainer, error)
- func (s *SolverStoreMemory) UpdateResourceOfferState(id string, dealID string, state uint8) (*dto.ResourceOfferContainer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SolverStoreMemory ¶
type SolverStoreMemory struct {
// contains filtered or unexported fields
}
func NewSolverStoreMemory ¶
func NewSolverStoreMemory(conf *viper.Viper) (*SolverStoreMemory, error)
func (*SolverStoreMemory) AddDeal ¶
func (s *SolverStoreMemory) AddDeal(deal dto.DealContainer) (*dto.DealContainer, error)
func (*SolverStoreMemory) AddJobOffer ¶
func (s *SolverStoreMemory) AddJobOffer(jobOffer dto.JobOfferContainer) (*dto.JobOfferContainer, error)
func (*SolverStoreMemory) AddMatchDecision ¶
func (s *SolverStoreMemory) AddMatchDecision(resourceOffer string, jobOffer string, deal string, result bool) (*dto.MatchDecision, error)
func (*SolverStoreMemory) AddResourceOffer ¶
func (s *SolverStoreMemory) AddResourceOffer(resourceOffer dto.ResourceOfferContainer) (*dto.ResourceOfferContainer, error)
func (*SolverStoreMemory) GetDeal ¶
func (s *SolverStoreMemory) GetDeal(id string) (*dto.DealContainer, error)
func (*SolverStoreMemory) GetDeals ¶
func (s *SolverStoreMemory) GetDeals(query store.GetDealsQuery) ([]dto.DealContainer, error)
func (*SolverStoreMemory) GetJobOffer ¶
func (s *SolverStoreMemory) GetJobOffer(id string) (*dto.JobOfferContainer, error)
func (*SolverStoreMemory) GetJobOffers ¶
func (s *SolverStoreMemory) GetJobOffers(query store.GetJobOffersQuery) ([]dto.JobOfferContainer, error)
func (*SolverStoreMemory) GetMatchDecision ¶
func (s *SolverStoreMemory) GetMatchDecision(resourceOffer string, jobOffer string) (*dto.MatchDecision, error)
func (*SolverStoreMemory) GetResourceOffer ¶
func (s *SolverStoreMemory) GetResourceOffer(id string) (*dto.ResourceOfferContainer, error)
func (*SolverStoreMemory) GetResourceOffers ¶
func (s *SolverStoreMemory) GetResourceOffers(query store.GetResourceOffersQuery) ([]dto.ResourceOfferContainer, error)
func (*SolverStoreMemory) GetResult ¶
func (s *SolverStoreMemory) GetResult(id string) (*dto.Result, error)
func (*SolverStoreMemory) RemoveJobOffer ¶
func (s *SolverStoreMemory) RemoveJobOffer(id string) error
func (*SolverStoreMemory) RemoveResourceOffer ¶
func (s *SolverStoreMemory) RemoveResourceOffer(id string) error
func (*SolverStoreMemory) UpdateDealMediator ¶
func (s *SolverStoreMemory) UpdateDealMediator(id string, mediator string) (*dto.DealContainer, error)
func (*SolverStoreMemory) UpdateDealState ¶
func (s *SolverStoreMemory) UpdateDealState(id string, state uint8) (*dto.DealContainer, error)
func (*SolverStoreMemory) UpdateDealTransactionsJobCreator ¶
func (s *SolverStoreMemory) UpdateDealTransactionsJobCreator(id string, data dto.DealTransactionsJobCreator) (*dto.DealContainer, error)
func (*SolverStoreMemory) UpdateDealTransactionsMediator ¶
func (s *SolverStoreMemory) UpdateDealTransactionsMediator(id string, data dto.DealTransactionsMediator) (*dto.DealContainer, error)
func (*SolverStoreMemory) UpdateDealTransactionsResourceProvider ¶
func (s *SolverStoreMemory) UpdateDealTransactionsResourceProvider(id string, data dto.DealTransactionsResourceProvider) (*dto.DealContainer, error)
func (*SolverStoreMemory) UpdateJobOfferState ¶
func (s *SolverStoreMemory) UpdateJobOfferState(id string, dealID string, state uint8) (*dto.JobOfferContainer, error)
func (*SolverStoreMemory) UpdateResourceOfferState ¶
func (s *SolverStoreMemory) UpdateResourceOfferState(id string, dealID string, state uint8) (*dto.ResourceOfferContainer, error)
Click to show internal directories.
Click to hide internal directories.