MCPcopy Create free account
hub / github.com/caddyserver/caddy / CaddyModule

Method CaddyModule

modules/caddyhttp/ip_range.go:66–71  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

64
65// CaddyModule returns the Caddy module information.
66func (StaticIPRange) CaddyModule() caddy.ModuleInfo {
67 return caddy.ModuleInfo{
68 ID: "http.ip_sources.static",
69 New: func() caddy.Module { return new(StaticIPRange) },
70 }
71}
72
73func (s *StaticIPRange) Provision(ctx caddy.Context) error {
74 for _, str := range s.Ranges {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected