Documentation ¶
Index ¶
- func Body(r *http.Request) interface{}
- func DocHandler(rip *rip) http.Handler
- func NewRIP() *rip
- type Parameter
- type PathElement
- type RIPResponse
- type Route
- func (r Route) DELETE() *Route
- func (r *Route) Do(subcall func(*Route)) *Route
- func (r Route) GET() *Route
- func (r *Route) Handler(handler http.Handler, doc string)
- func (r *Route) Method() string
- func (r Route) POST() *Route
- func (r Route) PUT() *Route
- func (r Route) Param(name string, doc string) *Route
- func (r Route) Path(pathElements ...string) *Route
- func (r *Route) QueryTemplate() string
- func (r Route) SetMethod(m string) *Route
- func (r Route) Target(target interface{}) *Route
- func (r *Route) Template() string
- func (r Route) Var(name string, doc string) *Route
- type RouteMethodError
- type RouteMissingMethodError
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocHandler ¶
Types ¶
type PathElement ¶
type PathElement interface {
Template() string
}
type RIPResponse ¶
type RIPResponse struct { StatusCode int Data interface{} }
func Response ¶
func Response(r *http.Request) *RIPResponse
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) QueryTemplate ¶
type RouteMethodError ¶
type RouteMethodError struct {
// contains filtered or unexported fields
}
func (*RouteMethodError) Error ¶
func (rem *RouteMethodError) Error() string
type RouteMissingMethodError ¶
type RouteMissingMethodError struct {
// contains filtered or unexported fields
}
func (*RouteMissingMethodError) Error ¶
func (rem *RouteMissingMethodError) Error() string
type Variables ¶
func (Variables) MustGetVar ¶
Click to show internal directories.
Click to hide internal directories.