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