Documentation ¶
Index ¶
- func Wrap(h Handler) http.HandlerFunc
- type Ctx
- type Handler
- type RestError
- type Router
- func (r *Router) Connect(route string, hf Handler)
- func (r *Router) Delete(route string, hf Handler)
- func (r *Router) Get(route string, hf Handler)
- func (r *Router) Head(route string, hf Handler)
- func (r *Router) Options(route string, hf Handler)
- func (r *Router) Patch(route string, hf Handler)
- func (r *Router) Post(route string, hf Handler)
- func (r *Router) Put(route string, hf Handler)
- func (r *Router) Route(route string, c func(*Router))
- func (r *Router) Trace(route string, hf Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RestError ¶
type RestError struct { Name string `json:"name"` Message string `json:"message"` Code int `json:"code"` }
RestError is an error for REST endpoints.
Click to show internal directories.
Click to hide internal directories.