matchmaking

package
v0.0.0-...-11d9664 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const K float64 = 30

Variables

This section is empty.

Functions

func AddPlayerToQueue

func AddPlayerToQueue(ctx context.Context, playerID string, role models.Role) error

func CloseMatch

func CloseMatch(ctx context.Context, match *models.Match) error

func GetMatchByThreadId

func GetMatchByThreadId(ctx context.Context, threadID string) (*models.Match, error)

func Init

func Init()

func IsPlayerInMatch

func IsPlayerInMatch(ctx context.Context, playerID string) (bool, error)

func IsPlayerInQueue

func IsPlayerInQueue(ctx context.Context, playerID string) (bool, error)

func RemovePlayerFromQueue

func RemovePlayerFromQueue(ctx context.Context, playerID string) error

func VoteCancelMatch

func VoteCancelMatch(ctx context.Context, match *models.Match)

func VoteResultMatch

func VoteResultMatch(ctx context.Context, match *models.Match, team1Score int, team2Score int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL