package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jan 11, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Public Source IP
This package determines the public IP used to connect to the first ingress load balancer, by the X-Forwarded-For header.
Usage
Importing
import publicsourceip "github.com/AccelByte/public-source-ip"
Call PublicIP
publicIP := publicsourceip.PublicIP(&http.Request{Header: request.Request.Header})
Documentation
¶
PublicIP determines the public IP used to connect to the first ingress load balancer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.