Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matchmaker ¶
type Matchmaker struct {
// contains filtered or unexported fields
}
Matchmaker implements the matchmaking logic using an internal MemoryMatchClient to handle player pair matching.
func NewMatchmaker ¶
func NewMatchmaker() *Matchmaker
NewMatchmaker creates a new instance of Matchmaker with a newly initialized MemoryMatchClient.
func (*Matchmaker) RequestMatch ¶
func (m *Matchmaker) RequestMatch(ctx context.Context, playerID, playerAddr string) (<-chan []string, error)
RequestMatch delegates to the MemoryMatchClient to handle the actual request. Returns appropriate response based on whether a player was found to match with.
Click to show internal directories.
Click to hide internal directories.