Documentation ¶
Index ¶
- type CloudflareIPBlock
- type CloudflareIPs
- type CloudflareIpSource
- type CloudflareOnly
- func (CloudflareOnly) CaddyModule() caddy.ModuleInfo
- func (cf *CloudflareOnly) Provision(ctx caddy.Context) error
- func (cf CloudflareOnly) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (cf *CloudflareOnly) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (cf *CloudflareOnly) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudflareIPBlock ¶
type CloudflareIPBlock struct {
// contains filtered or unexported fields
}
func GetCloudflareIpBlock ¶
func GetCloudflareIpBlock(ctx caddy.Context) *CloudflareIPBlock
type CloudflareIPs ¶
type CloudflareIPs struct { IPv4CIDRs []string `json:"ipv4_cidrs"` IPv6CIDRs []string `json:"ipv6_cidrs"` }
func FetchCloudflareIPs ¶
func FetchCloudflareIPs(ctx context.Context) (*CloudflareIPs, error)
type CloudflareIpSource ¶
type CloudflareIpSource struct {
// contains filtered or unexported fields
}
func (CloudflareIpSource) CaddyModule ¶
func (CloudflareIpSource) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*CloudflareIpSource) GetIPRanges ¶
func (cf *CloudflareIpSource) GetIPRanges(_ *http.Request) []netip.Prefix
func (*CloudflareIpSource) Provision ¶
func (cf *CloudflareIpSource) Provision(ctx caddy.Context) error
func (*CloudflareIpSource) UnmarshalCaddyfile ¶
func (cf *CloudflareIpSource) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
type CloudflareOnly ¶
type CloudflareOnly struct { RejectIfEmpty bool `json:"reject_if_empty,omitempty"` // contains filtered or unexported fields }
func (CloudflareOnly) CaddyModule ¶
func (CloudflareOnly) CaddyModule() caddy.ModuleInfo
func (*CloudflareOnly) Provision ¶
func (cf *CloudflareOnly) Provision(ctx caddy.Context) error
func (CloudflareOnly) ServeHTTP ¶
func (cf CloudflareOnly) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
func (*CloudflareOnly) UnmarshalCaddyfile ¶
func (cf *CloudflareOnly) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*CloudflareOnly) Validate ¶
func (cf *CloudflareOnly) Validate() error
Click to show internal directories.
Click to hide internal directories.