constant

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: 1 Imported by: 0

Documentation

Index

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

type AppError struct {
	Code  string
	Field string
}

func NewErrorCacheMiss

func NewErrorCacheMiss() AppError

func NewErrorEntityNotFound

func NewErrorEntityNotFound(field string) AppError

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) Error

func (e AppError) Error() string

func (AppError) Extensions

func (e AppError) Extensions() map[string]interface{}

Jump to

Keyboard shortcuts

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