Documentation ¶
Index ¶
- Constants
- func FindChampBySlug(champService contract.ChampService) func(*fasthttp.RequestCtx)
- func FindTeamByAbbr(teamService contract.TeamService) func(*fasthttp.RequestCtx)
- func HandleError(ctx *fasthttp.RequestCtx, err error)
- func HandleGraphql(teamService contract.TeamService, champService contract.ChampService) func(*fasthttp.RequestCtx)
- func HealthCheck() func(*fasthttp.RequestCtx)
- func ListChamps(champService contract.ChampService) func(*fasthttp.RequestCtx)
- func ListTeams(teamService contract.TeamService) func(*fasthttp.RequestCtx)
- func MethodNotAllowed() func(*fasthttp.RequestCtx)
- func PageNotFound() func(*fasthttp.RequestCtx)
- func Panic() func(*fasthttp.RequestCtx, interface{})
- func UpdateTrophies(scraperService contract.ScraperService) func(*fasthttp.RequestCtx)
Constants ¶
View Source
const ( ErrorCodeContextKey = "error-code" ErrorMessageContextKey = "error-message" )
Variables ¶
This section is empty.
Functions ¶
func FindChampBySlug ¶
func FindChampBySlug(champService contract.ChampService) func(*fasthttp.RequestCtx)
func FindTeamByAbbr ¶
func FindTeamByAbbr(teamService contract.TeamService) func(*fasthttp.RequestCtx)
func HandleError ¶
func HandleError(ctx *fasthttp.RequestCtx, err error)
func HandleGraphql ¶
func HandleGraphql(teamService contract.TeamService, champService contract.ChampService) func(*fasthttp.RequestCtx)
func HealthCheck ¶
func HealthCheck() func(*fasthttp.RequestCtx)
func ListChamps ¶
func ListChamps(champService contract.ChampService) func(*fasthttp.RequestCtx)
func ListTeams ¶
func ListTeams(teamService contract.TeamService) func(*fasthttp.RequestCtx)
func MethodNotAllowed ¶
func MethodNotAllowed() func(*fasthttp.RequestCtx)
func PageNotFound ¶
func PageNotFound() func(*fasthttp.RequestCtx)
func Panic ¶
func Panic() func(*fasthttp.RequestCtx, interface{})
func UpdateTrophies ¶
func UpdateTrophies(scraperService contract.ScraperService) func(*fasthttp.RequestCtx)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.