realip

package
v0.4.34 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause-Clear Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XRealIP       = "X-Real-IP"
	XForwardedFor = "X-Forwarded-For"
	TrueClientIP  = "True-Client-Ip"
)

Variables

This section is empty.

Functions

func ConnectRealIPUnaryInterceptor

func ConnectRealIPUnaryInterceptor() connect.UnaryInterceptorFunc

func FromContext

func FromContext(ctx context.Context) net.IP

Types

type ClientIP

type ClientIP struct{}

Jump to

Keyboard shortcuts

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