firstmatch

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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