firstmatch

package
v1.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 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) Backfill added in v1.2.0

func (*FirstMatchScenario) Backfill() *pb.Backfill

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, poolBackfills map[string][]*pb.Backfill, 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