Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRemoteAddr ¶
GetRemoteAddr parses the given request, resolves the X-Forwarded-For header and returns the resolved remote address.
func HandlerFunc ¶
func HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is a Martini compatible handler
func IsPublicIP ¶
IsPublicIP returns true if the given IP can be routed on the Internet
func XFF ¶
func XFF(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
XFF is a Negroni compatible interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.