Documentation ¶
Index ¶
- type FirstMatchScenario
- func (_ *FirstMatchScenario) Evaluate(stream pb.Evaluator_EvaluateServer) error
- func (_ *FirstMatchScenario) MatchFunction(p *pb.MatchProfile, poolTickets map[string][]*pb.Ticket) ([]*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) 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) MatchFunction(p *pb.MatchProfile, poolTickets map[string][]*pb.Ticket) ([]*pb.Match, error)
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.