faucet_ip

package
v0.0.0-...-8da70b3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interceptor

func Interceptor() connect.Interceptor

func Middleware

func Middleware() mux.MiddlewareFunc

func ParseIP

func ParseIP(headers http.Header, fallback string) (netip.Addr, error)

Types

type IP

type IP struct {
	IP netip.Addr
}

func FromContext

func FromContext(ctx context.Context) (IP, error)

Jump to

Keyboard shortcuts

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