Documentation ¶
Index ¶
- Variables
- func BadRequest(s string, p ...interface{}) error
- func ErrToStr(err error) string
- func ErrorDecoder(r *http.Response) error
- func ErrorEncoder(_ context.Context, err error, w http.ResponseWriter)
- func NotFound(s string, p ...interface{}) error
- func StrToErr(s string) error
- func Unauthorized(s string, p ...interface{}) error
- type ErrorWrapper
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BadRequest ¶
func ErrorDecoder ¶
func ErrorEncoder ¶
func ErrorEncoder(_ context.Context, err error, w http.ResponseWriter)
func Unauthorized ¶
Types ¶
type ErrorWrapper ¶
type ErrorWrapper struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.