Documentation
¶
Index ¶
- func CheckPageRow(c echo.Context) (page int, row int, err error)
- func GetHTTPRequest(URL string, username string, password string) ([]byte, error)
- func ReturnErrorMsg(c echo.Context, msg string) error
- func ReturnInternalError(c echo.Context, err error, reason string) error
- type ErrorResponse
- type HTTPStatusError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPRequest ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type HTTPStatusError ¶ added in v0.6.1
HTTPStatusError is returned by GetHTTPRequest for a non-2xx response, so callers can tell a rejection by the upstream (4xx) from an upstream failure (5xx) with errors.As.
func (*HTTPStatusError) Error ¶ added in v0.6.1
func (e *HTTPStatusError) Error() string
Click to show internal directories.
Click to hide internal directories.