Versions in this module Expand all Collapse all v2 v2.1.0 Feb 22, 2024 Changes in this version + const TrueClientIp + const XForwardedFor + const XRealIp + func FromContext(ctx context.Context) (netip.Addr, bool) + func StreamServerInterceptor(trustedPeers []netip.Prefix, headers []string) grpc.StreamServerInterceptor + func StreamServerInterceptorOpts(opts ...Option) grpc.StreamServerInterceptor + func UnaryServerInterceptor(trustedPeers []netip.Prefix, headers []string) grpc.UnaryServerInterceptor + func UnaryServerInterceptorOpts(opts ...Option) grpc.UnaryServerInterceptor + type Option func(*options) + func WithHeaders(headers []string) Option + func WithTrustedPeers(peers []netip.Prefix) Option + func WithTrustedProxies(proxies []netip.Prefix) Option + func WithTrustedProxiesCount(count uint) Option