Documentation
¶
Index ¶
- func RouteFromContext(ctx context.Context) string
- func RouteFromRequest(r *http.Request) string
- type Params
- type Router
- func (r *Router) DELETE(path string, handler http.Handler) *Router
- func (r *Router) GET(path string, handler http.Handler) *Router
- func (r *Router) Handler(method string, path string, handler http.Handler) *Router
- func (r *Router) InternalRouter() *httprouter.Router
- func (r *Router) POST(path string, handler http.Handler) *Router
- func (r *Router) PUT(path string, handler http.Handler) *Router
- func (r *Router) ServeHTTP(writer http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouteFromContext ¶ added in v1.9.1
func RouteFromRequest ¶ added in v1.9.1
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) InternalRouter ¶
func (r *Router) InternalRouter() *httprouter.Router
Click to show internal directories.
Click to hide internal directories.