Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouteHandler ¶
func RouteHandler(f RouteFunc) restful.RouteFunction
RouteHandler creates a wrapper function for route methods. This allows route methods to return errors and have them handled correctly.
func RouteHandler1 ¶
func RouteHandler1(f RouteFunc1) restful.RouteFunction
RouteHandler1 creates a wrapper function for route methods that only return an error. See RouteHandler for details.
Types ¶
type Handler ¶
type Handler func(request *restful.Request, response *restful.Response)
Handler represents the way a route function should actually be written.
type RouteFunc ¶
type RouteFunc func(request *restful.Request, response *restful.Response, user schema.User) (interface{}, error)
RouteFunc represents the routes function
type RouteFunc1 ¶
RouteFunc1 is a route function that only returns an error, but no value
Click to show internal directories.
Click to hide internal directories.