Documentation ¶
Index ¶
- Variables
- func BadRequest(message string) *errors.Error
- func ClientClosed(message string) *errors.Error
- func Conflict(message string) *errors.Error
- func Forbidden(message string) *errors.Error
- func GatewayTimeout(message string) *errors.Error
- func InternalServer(message string) *errors.Error
- func IsTimeoutError(err error) bool
- func New(code int, message string) *errors.Error
- func NotFound(message string) *errors.Error
- func ServiceUnavailable(message string) *errors.Error
- func Unauthorized(message string) *errors.Error
- type Group
- type TimeoutError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IsBadRequest = errors.IsBadRequest IsForbidden = errors.IsForbidden IsNotFound = errors.IsNotFound IsConflict = errors.IsConflict IsInternalServer = errors.IsInternalServer IsGatewayTimeout = errors.IsGatewayTimeout IsClientClosed = errors.IsClientClosed )
alias
View Source
var ( ErrBadRequest = BadRequest(http.StatusText(http.StatusBadRequest)) ErrForbidden = Forbidden(http.StatusText(http.StatusForbidden)) ErrNotFound = NotFound(http.StatusText(http.StatusNotFound)) ErrConflict = Conflict(http.StatusText(http.StatusConflict)) ErrInternalServer = InternalServer(http.StatusText(http.StatusInternalServerError)) ErrGatewayTimeout = GatewayTimeout(http.StatusText(http.StatusGatewayTimeout)) ErrClientClosed = ClientClosed("Client Closed") )
vars
Functions ¶
func BadRequest ¶
func ClientClosed ¶
func GatewayTimeout ¶
func InternalServer ¶
func IsTimeoutError ¶ added in v2.19.0
func ServiceUnavailable ¶
func Unauthorized ¶
Types ¶
type TimeoutError ¶ added in v2.19.0
func NewTimeoutError ¶ added in v2.19.0
func NewTimeoutError(timeout time.Duration, err error) *TimeoutError
func (*TimeoutError) Error ¶ added in v2.19.0
func (e *TimeoutError) Error() string
func (*TimeoutError) Unwrap ¶ added in v2.19.0
func (e *TimeoutError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.