Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxForwardedHeaderBytes = coregeoip.MaxForwardedHeaderBytes MaxForwardedHops = coregeoip.MaxForwardedHops )
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware returns the early ingress gate. A nil policy is a structural disabled fast path: no client resolution, lookup, or policy evaluation occurs.
func ResolveClientIP ¶
ResolveClientIP resolves a literal IP without DNS. Forwarding metadata is authoritative only when the immediate direct peer is trusted.
Types ¶
type Input ¶
type Input struct {
Policy *coregeoip.Policy
Lookup coregeoip.CountryLookup
Resolver ResolverConfig
Observer Observer
}
Input is the generation-scoped, non-owning GeoIP gate projection.
type ResolverConfig ¶
ResolverConfig is immutable input for one request-plane generation.
Click to show internal directories.
Click to hide internal directories.