Documentation ¶
Index ¶
- Constants
- func AddNewWeeklyCompetition(db *pgxpool.Pool, envMap map[string]string)
- func AddPlacementToRankings(rankings []RankingsEntry)
- func CreateCompetition(db *pgxpool.Pool, competition models.CompetitionData, envMap map[string]string) (string, string)
- func DeleteAnnouncement(db *pgxpool.Pool) gin.HandlerFunc
- func GetAnnouncementById(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func GetAnnouncements(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func GetAverageInfo(db *pgxpool.Pool) gin.HandlerFunc
- func GetAverageInfoRecords(db *pgxpool.Pool) gin.HandlerFunc
- func GetCompetitionById(db *pgxpool.Pool) gin.HandlerFunc
- func GetEvents(db *pgxpool.Pool) gin.HandlerFunc
- func GetFilteredCompetitions(db *pgxpool.Pool) gin.HandlerFunc
- func GetManageRolesUsers(db *pgxpool.Pool) gin.HandlerFunc
- func GetNewWeeklyCompetitionInfo(db *pgxpool.Pool) (models.CompetitionData, error)
- func GetNoOfNewAnnouncements(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func GetProfileResults(db *pgxpool.Pool) gin.HandlerFunc
- func GetRankings(db *pgxpool.Pool) gin.HandlerFunc
- func GetRecords(db *pgxpool.Pool) gin.HandlerFunc
- func GetRegionsGrouped(db *pgxpool.Pool) gin.HandlerFunc
- func GetResultsByIdAndEvent(db *pgxpool.Pool) gin.HandlerFunc
- func GetResultsFromCompetition(db *pgxpool.Pool) gin.HandlerFunc
- func GetResultsQuery(db *pgxpool.Pool) gin.HandlerFunc
- func GetResultsStatuses(db *pgxpool.Pool) gin.HandlerFunc
- func GetResultsValidation(db *pgxpool.Pool) gin.HandlerFunc
- func GetSearchUsers(db *pgxpool.Pool) gin.HandlerFunc
- func GetTags(db *pgxpool.Pool) gin.HandlerFunc
- func GetUserMapData(db *pgxpool.Pool) gin.HandlerFunc
- func PostAnnouncement(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func PostCompetition(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func PostLogIn(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func PostResults(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func PostResultsValidation(db *pgxpool.Pool) gin.HandlerFunc
- func PutAnnouncement(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func PutCompetition(db *pgxpool.Pool, envMap map[string]string) gin.HandlerFunc
- func PutManageRolesUsers(db *pgxpool.Pool) gin.HandlerFunc
- func ReactToAnnouncement(db *pgxpool.Pool) gin.HandlerFunc
- func ReadAnnouncement(db *pgxpool.Pool) gin.HandlerFunc
- func ValidateResults(db *pgxpool.Pool, body ValidateResultsBody, isadmin bool) (string, string)
- type AnnouncementReactResponse
- type AverageInfo
- type RankingsEntry
- type RecordsItem
- type RecordsItemEntry
- type RegionSelectGroup
- type ValidateResultsBody
Constants ¶
View Source
const (
ALL_EVENT = -1
)
Variables ¶
This section is empty.
Functions ¶
func AddNewWeeklyCompetition ¶
func AddPlacementToRankings ¶
func AddPlacementToRankings(rankings []RankingsEntry)
func CreateCompetition ¶
func DeleteAnnouncement ¶
func DeleteAnnouncement(db *pgxpool.Pool) gin.HandlerFunc
func GetAnnouncementById ¶
func GetAnnouncements ¶
func GetAverageInfo ¶
func GetAverageInfo(db *pgxpool.Pool) gin.HandlerFunc
func GetAverageInfoRecords ¶
func GetAverageInfoRecords(db *pgxpool.Pool) gin.HandlerFunc
func GetCompetitionById ¶
func GetCompetitionById(db *pgxpool.Pool) gin.HandlerFunc
func GetFilteredCompetitions ¶
func GetFilteredCompetitions(db *pgxpool.Pool) gin.HandlerFunc
func GetManageRolesUsers ¶
func GetManageRolesUsers(db *pgxpool.Pool) gin.HandlerFunc
func GetNewWeeklyCompetitionInfo ¶
func GetNewWeeklyCompetitionInfo(db *pgxpool.Pool) (models.CompetitionData, error)
func GetNoOfNewAnnouncements ¶
func GetProfileResults ¶
func GetProfileResults(db *pgxpool.Pool) gin.HandlerFunc
func GetRankings ¶
func GetRankings(db *pgxpool.Pool) gin.HandlerFunc
func GetRecords ¶
func GetRecords(db *pgxpool.Pool) gin.HandlerFunc
func GetRegionsGrouped ¶
func GetRegionsGrouped(db *pgxpool.Pool) gin.HandlerFunc
func GetResultsByIdAndEvent ¶
func GetResultsByIdAndEvent(db *pgxpool.Pool) gin.HandlerFunc
func GetResultsFromCompetition ¶
func GetResultsFromCompetition(db *pgxpool.Pool) gin.HandlerFunc
func GetResultsQuery ¶
func GetResultsQuery(db *pgxpool.Pool) gin.HandlerFunc
func GetResultsStatuses ¶
func GetResultsStatuses(db *pgxpool.Pool) gin.HandlerFunc
func GetResultsValidation ¶
func GetResultsValidation(db *pgxpool.Pool) gin.HandlerFunc
func GetSearchUsers ¶
func GetSearchUsers(db *pgxpool.Pool) gin.HandlerFunc
func GetUserMapData ¶
func GetUserMapData(db *pgxpool.Pool) gin.HandlerFunc
func PostAnnouncement ¶
func PostCompetition ¶
func PostResults ¶
func PostResultsValidation ¶
func PostResultsValidation(db *pgxpool.Pool) gin.HandlerFunc
func PutAnnouncement ¶
func PutCompetition ¶
func PutManageRolesUsers ¶
func PutManageRolesUsers(db *pgxpool.Pool) gin.HandlerFunc
func ReactToAnnouncement ¶
func ReactToAnnouncement(db *pgxpool.Pool) gin.HandlerFunc
func ReadAnnouncement ¶
func ReadAnnouncement(db *pgxpool.Pool) gin.HandlerFunc
func ValidateResults ¶
Types ¶
type AnnouncementReactResponse ¶
type AnnouncementReactResponse struct {
Set bool `json:"set"`
}
type AverageInfo ¶
type AverageInfo struct { Single string `json:"single"` Average string `json:"average"` Times []string `json:"times"` Bpa string `json:"bpa"` Wpa string `json:"wpa"` ShowPossibleAverage bool `json:"showPossibleAverage"` FinishedCompeting bool `json:"finishedCompeting"` Place string `json:"place"` SingleRecord string `json:"singleRecord"` SingleRecordColor string `json:"singleRecordColor"` AverageRecord string `json:"averageRecord"` AverageRecordColor string `json:"averageRecordColor"` }
type RankingsEntry ¶
type RankingsEntry struct { Place string `json:"place"` Username string `json:"username"` WcaId string `json:"wca_id"` CountryISO2 string `json:"country_iso2"` CountryName string `json:"country_name"` Result string `json:"result"` CompetitionId string `json:"competitionId"` CompetitionName string `json:"competitionName"` Times []string `json:"times"` }
func MergeNonUniqueRankings ¶
func MergeNonUniqueRankings(rankings []RankingsEntry, isfmc bool) []RankingsEntry
type RecordsItem ¶
type RecordsItem struct { EventName string `json:"eventname"` Iconcode string `json:"iconcode"` Entries []RecordsItemEntry `json:"entries"` }
type RecordsItemEntry ¶
type RecordsItemEntry struct { Type string `json:"type"` // Single or Average Username string `json:"username"` WcaId string `json:"wcaId"` Result string `json:"result"` CountryIso2 string `json:"countryIso2"` CountryName string `json:"countryName"` CompetitionName string `json:"competitionName"` CompetitionId string `json:"competitionId"` Solves []string `json:"solves"` CompetitionEndDate time.Time `json:"-"` EventName string `json:"-"` IconCode string `json:"-"` }
type RegionSelectGroup ¶
type ValidateResultsBody ¶
Click to show internal directories.
Click to hide internal directories.