Documentation
¶
Overview ¶
Package core holds value types shared between the public flexi package and the internal sub-packages, defined here to break an import cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeKind ¶
type AttributeKind int
const ( AttrUnknown AttributeKind = iota AttrString AttrNumber AttrStringList AttrStringNumberMap )
type Attributes ¶
type Match ¶
type Match struct {
Teams map[string][]Player
TicketIDs []string
RuleEvaluationMetrics []RuleMetric
}
type RuleMetric ¶ added in v0.0.2
RuleMetric aggregates how often a single rule passed or failed during matchmaking. It mirrors one entry of FlexMatch's ruleEvaluationMetrics array. RuleName matches the name declared in the rule set's rules block.
type StatusReason ¶ added in v0.1.0
type StatusReason string
StatusReason supplies additional context for a ticket's current status, mirroring MatchmakingTicket.StatusReason in the GameLift API. See types.go in the public package for user-facing docs.
const ( // StatusReasonAcceptanceFailed marks a ticket that has returned to // StatusSearching after a proposed match failed to gather the required // acceptances — i.e. a sibling player rejected or let the acceptance // window time out. It corresponds to FlexMatch re-entering an accepted // ticket into matchmaking after a proposed match fails. StatusReasonAcceptanceFailed StatusReason = "ACCEPTANCE_FAILED" )
type TicketStatus ¶
type TicketStatus string
TicketStatus mirrors the FlexMatch ticket lifecycle as documented for MatchmakingTicket.Status. See types.go in the public package for user-facing docs.
const ( StatusQueued TicketStatus = "QUEUED" StatusSearching TicketStatus = "SEARCHING" StatusRequiresAcceptance TicketStatus = "REQUIRES_ACCEPTANCE" StatusPlacing TicketStatus = "PLACING" StatusCompleted TicketStatus = "COMPLETED" StatusFailed TicketStatus = "FAILED" StatusCancelled TicketStatus = "CANCELLED" StatusTimedOut TicketStatus = "TIMED_OUT" )