Documentation ¶
Overview ¶
Package errors implements all the errors catalog available.
Index ¶
Constants ¶
View Source
const ( GenericError int = 1 DBError int = 2 GenericNotFoundError int = 3 InputNotValid int = 4 FaasConnectError int = 5 // service validation ServiceNotValid int = 100 // deploy errors GenericDeployError int = 200 // openfaas GenericOpenFaasError int = 300 // scheduler JobCannotBeScheduledError int = 400 // mongo errors DBDuplicateKey int = 11000 )
Variables ¶
This section is empty.
Functions ¶
func ReplyWithError ¶
func ReplyWithError(w http.ResponseWriter, errorCode int)
func ReplyWithErrorMessage ¶
func ReplyWithErrorMessage(w http.ResponseWriter, errorCode int, msg string)
Types ¶
type ErrorAPIGet ¶
type ErrorAPIGet struct {
URL string
}
func (ErrorAPIGet) Error ¶
func (e ErrorAPIGet) Error() string
type ErrorAPIPost ¶
type ErrorAPIPost struct {
URL string
}
func (ErrorAPIPost) Error ¶
func (e ErrorAPIPost) Error() string
type ErrorJSONDecoding ¶
type ErrorJSONDecoding struct{}
func (ErrorJSONDecoding) Error ¶
func (e ErrorJSONDecoding) Error() string
type ErrorJSONEncode ¶
type ErrorJSONEncode struct{}
func (ErrorJSONEncode) Error ¶
func (e ErrorJSONEncode) Error() string
type ErrorReply ¶
Click to show internal directories.
Click to hide internal directories.