Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudflareIPRange ¶
type CloudflareIPRange struct { // refresh Interval Interval caddy.Duration `json:"interval,omitempty"` // request Timeout Timeout caddy.Duration `json:"timeout,omitempty"` // contains filtered or unexported fields }
CloudflareIPRange provides a range of IP address prefixes (CIDRs) retrieved from cloudflare.
func (CloudflareIPRange) CaddyModule ¶
func (CloudflareIPRange) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*CloudflareIPRange) GetIPRanges ¶
func (s *CloudflareIPRange) GetIPRanges(_ *http.Request) []netip.Prefix
func (*CloudflareIPRange) Provision ¶
func (s *CloudflareIPRange) Provision(ctx caddy.Context) error
func (*CloudflareIPRange) UnmarshalCaddyfile ¶
func (m *CloudflareIPRange) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
cloudflare { interval val timeout val }
Click to show internal directories.
Click to hide internal directories.