Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matchmaker ¶ added in v0.19.0
type Matchmaker interface {
RequestMatch(ctx context.Context, playerID, playerAddr string) (<-chan []string, error)
}
Matchmaker interface for matchmaking logic
type MatchmakingService ¶
type MatchmakingService struct {
matchmakingv1.UnimplementedMatchmakingServiceServer
// contains filtered or unexported fields
}
MatchmakingService holds matchmaking service logic
func NewMatchmakingService ¶ added in v0.19.0
func NewMatchmakingService(m Matchmaker) *MatchmakingService
NewMatchmakingService creates a new instance of MatchmakingService with provided matchmaker
func (*MatchmakingService) RequestMatch ¶ added in v0.19.0
func (s *MatchmakingService) RequestMatch(req *matchmakingv1.RequestMatchRequest, svr matchmakingv1.MatchmakingService_RequestMatchServer) error
RequestMatch implements the MatchmakingService server method, delegates to the internal matchmaker
Click to show internal directories.
Click to hide internal directories.