store

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-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 SolverStoreMemory

type SolverStoreMemory struct {
	// contains filtered or unexported fields
}

func NewSolverStoreMemory

func NewSolverStoreMemory(conf *viper.Viper) (*SolverStoreMemory, error)

func (*SolverStoreMemory) AddDeal

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

func (s *SolverStoreMemory) AddResult(result dto.Result) (*dto.Result, 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 (*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 (*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)

Jump to

Keyboard shortcuts

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