Versions in this module Expand all Collapse all v0 v0.0.2 Feb 15, 2023 v0.0.1 Feb 15, 2023 Changes in this version + const CFConnectingIP + const CFVisitor + const XForwardedFor + const XForwardedHost + const XForwardedProto + const XRealIP + const XTrustedProxy + func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) + type CFHeaderWriter struct + func (writer *CFHeaderWriter) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type CheckResult struct + IsTrusted bool + IsValid bool + ProxyAddr netip.Addr + type CloudflareHeaders struct + type Config struct + IncludeDefault bool + TrustedProxies []string + func CreateConfig() *Config