Documentation ¶
Index ¶
- Constants
- func AddPlayerToQueue(ctx context.Context, playerID string, role models.Role) error
- func CloseMatch(ctx context.Context, match *models.Match) error
- func GetMatchByThreadId(ctx context.Context, threadID string) (*models.Match, error)
- func Init()
- func IsPlayerInMatch(ctx context.Context, playerID string) (bool, error)
- func IsPlayerInQueue(ctx context.Context, playerID string) (bool, error)
- func RemovePlayerFromQueue(ctx context.Context, playerID string) error
- func VoteCancelMatch(ctx context.Context, match *models.Match)
- func VoteResultMatch(ctx context.Context, match *models.Match, team1Score int, team2Score int)
Constants ¶
View Source
const K float64 = 30
Variables ¶
This section is empty.
Functions ¶
func AddPlayerToQueue ¶
func GetMatchByThreadId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.