mapstats

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractInfFromHTML

func ExtractInfFromHTML(html string) (data models.TeamStats, err error)

func ExtractMatches

func ExtractMatches(MatchId string, MatchDescription string) (data map[string]interface{}, err error)

func GetMapStats

func GetMapStats(c *gin.Context)

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

Types

type MapData

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

type MatchStats

type MatchStats struct {
	StatsTeam1 models.TeamStats `json:"StatsTeam1"`
	StatsTeam2 models.TeamStats `json:"StatsTeam2"`
}

Jump to

Keyboard shortcuts

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