Documentation ¶
Index ¶
Constants ¶
View Source
const ( NODE_STATIC = iota // normal node, ex: abc in /abc NODE_DYNAMIC // dynamic node, ex: {id} in /abc/{id} )
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct{}
func (*Controller) NotFound ¶
func (c *Controller) NotFound(w http.ResponseWriter, r *http.Request)
type Router ¶
type Router struct { // Configurable Handler to be used when no route matches. NotFoundHandler http.Handler // contains filtered or unexported fields }
contains all routes
func (*Router) ServeHTTP ¶
func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)
---------------- runtime -------------------- this will run in an incoming http request
func (*Router) SetController ¶
func (router *Router) SetController(impl interface{})
Click to show internal directories.
Click to hide internal directories.