match

package
v0.0.0-...-93cd392 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractData

func ExtractData(id string, MatchDescription string) (data map[string]interface{}, err error)

func ExtractMapsResult

func ExtractMapsResult(html string) (list []models.MapResult, err error)

func ExtractMapsResultData

func ExtractMapsResultData(html string) (data []models.MapResult, err error)

func ExtractMapsStats

func ExtractMapsStats(html string) ([]models.TeamStats, error)

func ExtractMapsVet

func ExtractMapsVet(html string) (data []models.MapVeto, err error)

func ExtractPlayersStats

func ExtractPlayersStats(html string) (list []models.TeamStats, err error)

func GetMatchData

func GetMatchData(c *gin.Context)

GetMatches godoc @Summary Get information for a single match @Description Using the match ID obtained from /api/last-results, this endpoint returns detailed information about a single match, including maps, results, and team stats. @Tags Match @Accept json @Produce json @Param payload body Match true "Request payload containing the day or other filters" @Success 200 {array} LastMatchSummary "List of past match results with map links" @Failure 500 {object} models.ErrorResponse "Internal server error" @Router /api/match [post]

Types

type LastMatchSummary

type LastMatchSummary struct {
	MapVetoes []models.MapVeto   `json:"mapVetoes"`
	Results   []models.MapResult `json:"results"`
	TeamStats []models.TeamStats `json:"teamStats"`
}

type Match

type Match struct {
	MatchId          string `json:"matchid"`
	MatchDescription string `json:"matchDescription"`
}

Jump to

Keyboard shortcuts

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