Documentation ¶
Index ¶
- func AddMarkovOccurences(ctx context.Context, ms []*models.Markov) error
- func AddPlayerToQueue(ctx context.Context, p *models.Player, role models.Role, entryTime int) error
- func CreateMatch(ctx context.Context, m *models.Match) error
- func CreatePlayer(ctx context.Context, discordID string) error
- func CreatePrediction(ctx context.Context, discordID string, matchID string, team int, amount int) error
- func DeleteAllMarkov() error
- func GetForwardsCountInQueue(ctx context.Context) (int, error)
- func GetGoaliesCountInQueue(ctx context.Context) (int, error)
- func GetMarkovOccurencesAndTotal(ctx context.Context, word1 string, word2 string) ([]*models.Markov, error)
- func GetMatchByID(ctx context.Context, matchID string) (*models.Match, error)
- func GetMatchByThreadID(ctx context.Context, threadID string) (*models.Match, error)
- func GetOrCreatePlayerById(ctx context.Context, discordID string) (*models.Player, error)
- func GetPlayerById(ctx context.Context, discordID string) (*models.Player, error)
- func GetPlayerByUsername(ctx context.Context, username string) (*models.Player, error)
- func GetPlayersInQueue(ctx context.Context) ([]*models.QueuedPlayer, error)
- func GetPlayersOrderedByCredits(ctx context.Context) ([]*models.Player, error)
- func GetPlayersPredictionOnMatch(ctx context.Context, match *models.Match) ([]*models.Prediction, error)
- func GetPredictionsTotalOnMatch(ctx context.Context, matchID string) (int, int, error)
- func GetRunningMatchesOrderedByTimestamp(ctx context.Context) ([]*models.Match, error)
- func GetStartingMarkovOccurences(ctx context.Context) ([]*models.Markov, error)
- func GetWaitingForVotesMatches(ctx context.Context) ([]*models.Match, error)
- func Init()
- func IsPlayerInMatch(ctx context.Context, p *models.Player) (bool, error)
- func IsPlayerInQueue(ctx context.Context, p *models.Player) (bool, error)
- func RemovePlayerFromQueue(ctx context.Context, p *models.Player) error
- func UpdateMatch(ctx context.Context, m *models.Match) error
- func UpdatePlayer(ctx context.Context, p *models.Player) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPlayerToQueue ¶
func CreatePrediction ¶
func DeleteAllMarkov ¶
func DeleteAllMarkov() error
func GetMatchByThreadID ¶
func GetOrCreatePlayerById ¶
func GetPlayerById ¶
func GetPlayerByUsername ¶
func GetPlayersInQueue ¶
func GetPlayersInQueue(ctx context.Context) ([]*models.QueuedPlayer, error)
func RemovePlayerFromQueue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.