realip

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package realip attempts to extract the real IP address from a service running behind a load balancer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGoogleCloud

func FromGoogleCloud(r *http.Request) string

FromGoogleCloud extracts the best real client IP address from the request, handling xff behind a load balancer. It returns the empty string if no real IP was found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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