Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ListenAndServe(routes []byte, ch interface{}, eh exceptionHandler, mwh middlewareHandler) error
ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections. Accepted connections are configured to enable TCP keep-alives.
The handler is typically nil, in which case the DefaultServeMux is used.
ListenAndServe always returns a non-nil error.
Types ¶
type Middleware ¶
type Middleware interface {
Run(m *manager.Manager, next httprouter.Handle, w http.ResponseWriter, r *http.Request)
}
Click to show internal directories.
Click to hide internal directories.