Documentation ¶
Index ¶
- type FirstMatchScenario
- func (*FirstMatchScenario) Backfill() *pb.Backfill
- func (*FirstMatchScenario) Evaluate(stream pb.Evaluator_EvaluateServer) error
- func (*FirstMatchScenario) MatchFunction(p *pb.MatchProfile, poolBackfills map[string][]*pb.Backfill, ...) ([]*pb.Match, error)
- func (*FirstMatchScenario) Profiles() []*pb.MatchProfile
- func (*FirstMatchScenario) Ticket() *pb.Ticket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirstMatchScenario ¶
type FirstMatchScenario struct { }
func Scenario ¶
func Scenario() *FirstMatchScenario
func (*FirstMatchScenario) Backfill ¶ added in v1.2.0
func (*FirstMatchScenario) Backfill() *pb.Backfill
func (*FirstMatchScenario) Evaluate ¶
func (*FirstMatchScenario) Evaluate(stream pb.Evaluator_EvaluateServer) error
fifoEvaluate accepts all matches which don't contain the same ticket as in a previously accepted match. Essentially first to claim the ticket wins.
func (*FirstMatchScenario) MatchFunction ¶
func (*FirstMatchScenario) Profiles ¶
func (*FirstMatchScenario) Profiles() []*pb.MatchProfile
func (*FirstMatchScenario) Ticket ¶
func (*FirstMatchScenario) Ticket() *pb.Ticket
Click to show internal directories.
Click to hide internal directories.