Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var URLs = [][2]interface{}{
{"/", indexPage},
{"/stats/mem", memoryUsage},
{"/api/search", searchAPI},
{"/api/search/advanced", advancedSearchAPI},
{"/api/competitions-list", getCompetitionsList},
{"/api/competition/weeks", getCompetitionWeeks},
{"/api/competition/standing-table", getCompetitionStandingTable},
{"/api/competition/matches/week", getMatchesByWeekNumber},
{"/api/match/info", getMatchInfo},
{"/api/matches", getMatchesByDate},
{"/api/transfers/regions", getTransfersRegions},
{"/api/transfers", getTransfers},
}
Functions ¶
Types ¶
type ServeMux ¶
type ServeMux struct { APIClient *api.Session Cache *cache.Cache // Logger Logger *logging.FileLogger // ErrorHandler ErrorHandler func(ctx *fasthttp.RequestCtx, err error) // Logs functions ping speed LogSpeed bool // contains filtered or unexported fields }
func (*ServeMux) AddHandler ¶
func (*ServeMux) HandleHTTP ¶
func (m *ServeMux) HandleHTTP(ctx *fasthttp.RequestCtx)
Click to show internal directories.
Click to hide internal directories.