handler

package
v0.0.0-...-cb1e3f4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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