Documentation ¶
Index ¶
- Variables
- func CheckStackTracer(req *http.Request, err error) error
- func GetSubmatches(req *http.Request) []string
- func NewErrorNoResponderFoundWrongMethod(orig, suggested string) error
- func SetSubmatches(req *http.Request, submatches []string) *http.Request
- type ErrorNoResponderFoundWrongMethod
- type RouteKey
- type StackTracer
Constants ¶
This section is empty.
Variables ¶
View Source
var NoResponderFound = errors.New("no responder found") // nolint: revive
NoResponderFound is returned when no responders are found for a given HTTP method and URL.
Functions ¶
func CheckStackTracer ¶
CheckStackTracer checks for specific error returned by NewNotFoundResponder function or Trace Responder method.
func GetSubmatches ¶
func NewErrorNoResponderFoundWrongMethod ¶ added in v1.1.0
NewErrorNoResponderFoundWrongMethod returns an ErrorNoResponderFoundWrongMethod.
Types ¶
type ErrorNoResponderFoundWrongMethod ¶ added in v1.1.0
type ErrorNoResponderFoundWrongMethod struct {
// contains filtered or unexported fields
}
errorNoResponderFoundMethodCase encapsulates a NoResponderFound error probably due to the method not upper-cased.
func (*ErrorNoResponderFoundWrongMethod) Error ¶ added in v1.1.0
func (e *ErrorNoResponderFoundWrongMethod) Error() string
Error implements error interface.
func (*ErrorNoResponderFoundWrongMethod) Unwrap ¶ added in v1.1.0
func (e *ErrorNoResponderFoundWrongMethod) Unwrap() error
Unwrap implements the interface needed by errors.Unwrap.
type StackTracer ¶
type StackTracer struct { CustomFn func(...interface{}) Err error }
func (StackTracer) Unwrap ¶ added in v1.1.0
func (s StackTracer) Unwrap() error
Unwrap implements the interface needed by errors.Unwrap.
Click to show internal directories.
Click to hide internal directories.