Documentation ¶
Index ¶
Constants ¶
View Source
const ( TrueClientIP = "True-Client-IP" // Edge providers (such as Akamai) TrueRealIP = "True-Real-IP" // Proxies (like Nginx) XForwardedFor = "X-Forwarded-For" // External proxies (like an ELB or router) XOriginatingIP = "X-Originating-IP" // Defacto email header )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteAddr ¶
type RemoteAddr struct { }
RemoteAddr http handler
func (*RemoteAddr) Handler ¶
func (ra *RemoteAddr) Handler(h http.Handler) http.Handler
Handler provides a http.HandlerFunc interface
func (*RemoteAddr) HandlerFunc ¶
func (ra *RemoteAddr) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc provides a Martini compatible handler interface
func (*RemoteAddr) ServeHTTP ¶
func (ra *RemoteAddr) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
ServeHTTP provides a Negroni compatible interface
Click to show internal directories.
Click to hide internal directories.