Documentation ¶
Index ¶
Constants ¶
View Source
const ( ROUTER_GORILLA int = iota + 1 // Start at 1 to error on no input ROUTER_CHI )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct { Ctx context.Context W http.ResponseWriter R *http.Request Rtime int64 Htime int64 }
Default includes fields required to process requests
type Middleware ¶
type Route ¶
type Route struct { // The request path Path string // The request method Method string // Middleware can be used to modify requests and/or responses Middleware []Middleware // Input is custom input needed to handle the request // Input is typically a struct pointer Input interface{} // The request handler Handler Handler }
Click to show internal directories.
Click to hide internal directories.