xffecho

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: BSD-3-Clause-Clear Imports: 4 Imported by: 0

Documentation

Overview

Package xffecho adapts xff.TrustedProxies for use with the Echo web framework's X-Forwarded-For IP extraction.

Usage

tp, err := fastlyxff.New("fastly.json")
if err != nil {
	return err
}
trustOpts := xffecho.TrustOptions(tp)
e.IPExtractor = echo.ExtractIPFromXFFHeader(trustOpts...)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrustOptions

func TrustOptions(tp *xff.TrustedProxies) []echo.TrustOption

TrustOptions converts a xff.TrustedProxies into Echo trust options for use with echo.ExtractIPFromXFFHeader.

Types

This section is empty.

Jump to

Keyboard shortcuts

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