Documentation ¶
Index ¶
- type SolverStoreMemory
- func (s *SolverStoreMemory) AddDeal(deal data.DealContainer) (*data.DealContainer, error)
- func (s *SolverStoreMemory) AddJobOffer(jobOffer data.JobOfferContainer) (*data.JobOfferContainer, error)
- func (s *SolverStoreMemory) AddMatchDecision(resourceOffer string, jobOffer string, deal string, result bool) (*data.MatchDecision, error)
- func (s *SolverStoreMemory) AddResourceOffer(resourceOffer data.ResourceOfferContainer) (*data.ResourceOfferContainer, error)
- func (s *SolverStoreMemory) AddResult(result data.Result) (*data.Result, error)
- func (s *SolverStoreMemory) GetDeal(id string) (*data.DealContainer, error)
- func (s *SolverStoreMemory) GetDeals(query store.GetDealsQuery) ([]data.DealContainer, error)
- func (s *SolverStoreMemory) GetJobOffer(id string) (*data.JobOfferContainer, error)
- func (s *SolverStoreMemory) GetJobOffers(query store.GetJobOffersQuery) ([]data.JobOfferContainer, error)
- func (s *SolverStoreMemory) GetMatchDecision(resourceOffer string, jobOffer string) (*data.MatchDecision, error)
- func (s *SolverStoreMemory) GetResourceOffer(id string) (*data.ResourceOfferContainer, error)
- func (s *SolverStoreMemory) GetResourceOffers(query store.GetResourceOffersQuery) ([]data.ResourceOfferContainer, error)
- func (s *SolverStoreMemory) GetResult(id string) (*data.Result, error)
- func (s *SolverStoreMemory) RemoveJobOffer(id string) error
- func (s *SolverStoreMemory) RemoveResourceOffer(id string) error
- func (s *SolverStoreMemory) UpdateDealMediator(id string, mediator string) (*data.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealState(id string, state uint8) (*data.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealTransactionsJobCreator(id string, data data.DealTransactionsJobCreator) (*data.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealTransactionsMediator(id string, data data.DealTransactionsMediator) (*data.DealContainer, error)
- func (s *SolverStoreMemory) UpdateDealTransactionsResourceProvider(id string, data data.DealTransactionsResourceProvider) (*data.DealContainer, error)
- func (s *SolverStoreMemory) UpdateJobOfferState(id string, dealID string, state uint8) (*data.JobOfferContainer, error)
- func (s *SolverStoreMemory) UpdateResourceOfferState(id string, dealID string, state uint8) (*data.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() (*SolverStoreMemory, error)
func (*SolverStoreMemory) AddDeal ¶
func (s *SolverStoreMemory) AddDeal(deal data.DealContainer) (*data.DealContainer, error)
func (*SolverStoreMemory) AddJobOffer ¶
func (s *SolverStoreMemory) AddJobOffer(jobOffer data.JobOfferContainer) (*data.JobOfferContainer, error)
func (*SolverStoreMemory) AddMatchDecision ¶
func (s *SolverStoreMemory) AddMatchDecision(resourceOffer string, jobOffer string, deal string, result bool) (*data.MatchDecision, error)
func (*SolverStoreMemory) AddResourceOffer ¶
func (s *SolverStoreMemory) AddResourceOffer(resourceOffer data.ResourceOfferContainer) (*data.ResourceOfferContainer, error)
func (*SolverStoreMemory) GetDeal ¶
func (s *SolverStoreMemory) GetDeal(id string) (*data.DealContainer, error)
func (*SolverStoreMemory) GetDeals ¶
func (s *SolverStoreMemory) GetDeals(query store.GetDealsQuery) ([]data.DealContainer, error)
func (*SolverStoreMemory) GetJobOffer ¶
func (s *SolverStoreMemory) GetJobOffer(id string) (*data.JobOfferContainer, error)
func (*SolverStoreMemory) GetJobOffers ¶
func (s *SolverStoreMemory) GetJobOffers(query store.GetJobOffersQuery) ([]data.JobOfferContainer, error)
func (*SolverStoreMemory) GetMatchDecision ¶
func (s *SolverStoreMemory) GetMatchDecision(resourceOffer string, jobOffer string) (*data.MatchDecision, error)
func (*SolverStoreMemory) GetResourceOffer ¶
func (s *SolverStoreMemory) GetResourceOffer(id string) (*data.ResourceOfferContainer, error)
func (*SolverStoreMemory) GetResourceOffers ¶
func (s *SolverStoreMemory) GetResourceOffers(query store.GetResourceOffersQuery) ([]data.ResourceOfferContainer, error)
func (*SolverStoreMemory) GetResult ¶
func (s *SolverStoreMemory) GetResult(id string) (*data.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) (*data.DealContainer, error)
func (*SolverStoreMemory) UpdateDealState ¶
func (s *SolverStoreMemory) UpdateDealState(id string, state uint8) (*data.DealContainer, error)
func (*SolverStoreMemory) UpdateDealTransactionsJobCreator ¶
func (s *SolverStoreMemory) UpdateDealTransactionsJobCreator(id string, data data.DealTransactionsJobCreator) (*data.DealContainer, error)
func (*SolverStoreMemory) UpdateDealTransactionsMediator ¶
func (s *SolverStoreMemory) UpdateDealTransactionsMediator(id string, data data.DealTransactionsMediator) (*data.DealContainer, error)
func (*SolverStoreMemory) UpdateDealTransactionsResourceProvider ¶
func (s *SolverStoreMemory) UpdateDealTransactionsResourceProvider(id string, data data.DealTransactionsResourceProvider) (*data.DealContainer, error)
func (*SolverStoreMemory) UpdateJobOfferState ¶
func (s *SolverStoreMemory) UpdateJobOfferState(id string, dealID string, state uint8) (*data.JobOfferContainer, error)
func (*SolverStoreMemory) UpdateResourceOfferState ¶
func (s *SolverStoreMemory) UpdateResourceOfferState(id string, dealID string, state uint8) (*data.ResourceOfferContainer, error)
Click to show internal directories.
Click to hide internal directories.