MCPcopy
hub / github.com/caddyserver/caddy / UnmarshalCaddyfile

Method UnmarshalCaddyfile

modules/caddytls/ondemand.go:103–111  ·  view source on GitHub ↗

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

(d *caddyfile.Dispenser)

Source from the content-addressed store, hash-verified

101
102// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
103func (p *PermissionByHTTP) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
104 if !d.Next() {
105 return nil
106 }
107 if !d.AllArgs(&p.Endpoint) {
108 return d.ArgErr()
109 }
110 return nil
111}
112
113func (p *PermissionByHTTP) Provision(ctx caddy.Context) error {
114 p.logger = ctx.Logger()

Callers

nothing calls this directly

Calls 3

AllArgsMethod · 0.80
ArgErrMethod · 0.80
NextMethod · 0.65

Tested by

no test coverage detected