public_source_ip

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

Build Status

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicIP

func PublicIP(request *http.Request) string

PublicIP determines the public IP used to connect to the first ingress load balancer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL