statistics

package
v0.0.0-...-31439ab Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Best

func Best(svc *svc.Svc) gin.HandlerFunc

func KinCh

func KinCh(svc *svc.Svc) gin.HandlerFunc

func Records

func Records(svc *svc.Svc) gin.HandlerFunc

Types

type BestReq

type BestReq struct {
	Page int `form:"page" json:"page" query:"page"`
	Size int `form:"size" json:"size" query:"size"`

	EventId string `uri:"eventId"`
	Avg     bool   `form:"avg" json:"avg" query:"avg"`
}

type BestResp

type BestResp struct {
	Best map[_interface.EventID][]result.Results
	Avg  map[_interface.EventID][]result.Results

	BestResults []result.Results
	AvgResults  []result.Results
}

type KinChReq

type KinChReq struct {
	Page   int      `form:"page" json:"page" query:"page"`
	Size   int      `form:"size" json:"size" query:"size"`
	Events []string `json:"events" query:"events"`
}

type RecordsReq

type RecordsReq struct {
	GroupId string `json:"GroupId"`
	EventId string `json:"EventId"`
}

type RecordsResp

type RecordsResp struct {
	Records []result.Record

	Best    map[string][]result.Record
	Average map[string][]result.Record
}

Jump to

Keyboard shortcuts

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