Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { Log *log.Logger IPField string // `long:"logger_realip_field" default:"real-ip" description:"Context field for Real ip"` }
Middleware is a struct that has a ServeHTTP method
func (*Middleware) ServeHTTP ¶
func (mw *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
The middleware handler
Click to show internal directories.
Click to hide internal directories.