Documentation ¶
Index ¶
- Constants
- type AppError
- func NewErrorCacheMiss() AppError
- func NewErrorEntityNotFound(field string) AppError
- func NewErrorInternal() AppError
- func NewErrorInvalidQueryKey() AppError
- func NewErrorInvalidRequestBody() AppError
- func NewErrorMethodNotAllowed() AppError
- func NewErrorPageNotFound() AppError
- func NewErrorRequestBodyTooLarge() AppError
- func NewErrorTooManyRequests() AppError
Constants ¶
View Source
const ( ChampSlugNationalLeague1Div = "national-league-1-div" ChampSlugNationalLeague2Div = "national-league-2-div" ChampSlugNationalCup = "national-cup" ChampSlugWorldCup = "world-cup" ChampSlugIntercontinentalCup = "intercontinental-cup" ChampSlugSouthAmericanCupA = "south-american-cup-a" ChampSlugSouthAmericanCupB = "south-american-cup-b" ChampSlugSouthAmericanSupercup = "south-american-supercup" ChampSlugSPStateCup = "sp-state-cup" ChampSlugRJStateCup = "rj-state-cup" ChampSlugRSStateCup = "rs-state-cup" ChampSlugMGStateCup = "mg-state-cup" )
Championships slugs constants.
View Source
const ( TeamAbbrSCCP = "sccp" TeamAbbrSEP = "sep" TeamAbbrSPFC = "spfc" TeamAbbrSFC = "sfc" TeamAbbrCRF = "crf" TeamAbbrCRVG = "crvg" TeamAbbrFFC = "ffc" TeamAbbrBFR = "bfr" TeamAbbrCAM = "cam" TeamAbbrCEC = "cec" TeamAbbrGFBPA = "gfbpa" TeamAbbrSCI = "sci" )
Teams abbreviations constants.
View Source
const ( // ErrorCodePageNotFound means that a route was not found. ErrorCodePageNotFound = "page-not-found" // ErrorCodeMethodNotAllowed means that the current method is not allowed for the // specific route. ErrorCodeMethodNotAllowed = "method-not-allowed" // ErrorCodeCacheMiss indicates a cache miss when fetching an item from CacheManager. ErrorCodeCacheMiss = "cache-miss" // ErrorCodeTooManyRequests means that an IP is sending too much requests and we're // blocking it. ErrorCodeTooManyRequests = "too-many-requests" // ErrorCodeInvalidRequestBody means that the HTTP request body has an invalid // format. ErrorCodeInvalidRequestBody = "invalid-request-body" // ErrorCodeRequestBodyTooLarge means that the entity passed through the request is // too large. ErrorCodeRequestBodyTooLarge = "request-body-too-large" // ErrorCodeEntityNotFound means that a resource entity was not found. ErrorCodeEntityNotFound = "entity-not-found" // ErrorCodeInvalidQueryKey means the resource needed a query key, but the given // one was missing or invalid. ErrorCodeInvalidQueryKey = "invalid-query-key" // ErrorCodeInternal means any general internal error. ErrorCodeInternal = "internal" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
func NewErrorCacheMiss ¶
func NewErrorCacheMiss() AppError
func NewErrorEntityNotFound ¶
func NewErrorInternal ¶
func NewErrorInternal() AppError
func NewErrorInvalidQueryKey ¶
func NewErrorInvalidQueryKey() AppError
func NewErrorInvalidRequestBody ¶
func NewErrorInvalidRequestBody() AppError
func NewErrorMethodNotAllowed ¶
func NewErrorMethodNotAllowed() AppError
func NewErrorPageNotFound ¶
func NewErrorPageNotFound() AppError
func NewErrorRequestBodyTooLarge ¶
func NewErrorRequestBodyTooLarge() AppError
func NewErrorTooManyRequests ¶
func NewErrorTooManyRequests() AppError
func (AppError) Extensions ¶
Click to show internal directories.
Click to hide internal directories.