Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRemoteAddr ¶
GetRemoteAddr Extracts the remote IP address from a request object If no IP address ForwardFor header is found then the Host header will be used
r - *http.Request, request object that will be used to retrieve remote IP address
Returns:
out - string, remote IP address for the passed request object
func GetRequestIP ¶
GetRequestIP Extracts the remote IP address from a request object If no IP address ForwardFor header is found then the Host header will be used
r - *http.Request, request object that will be used to retrieve remote IP address
Returns:
out - string, remote IP address for the passed request object
func GetSelfPublicIP ¶
GetSelfPublicIP Retrieves the current servers remote IP address Returns:
out - string, remote IP address for this server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.