MCPcopy Create free account
hub / github.com/idank/explainshell / parseCaddyfile

Function parseCaddyfile

prod/botshed/module.go:291–297  ·  view source on GitHub ↗
(h httpcaddyfile.Helper)

Source from the content-addressed store, hash-verified

289}
290
291func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
292 var b Botshed
293 if err := b.UnmarshalCaddyfile(h.Dispenser); err != nil {
294 return nil, err
295 }
296 return &b, nil
297}
298
299var (
300 _ caddy.Provisioner = (*Botshed)(nil)

Callers

nothing calls this directly

Calls 1

UnmarshalCaddyfileMethod · 0.95

Tested by

no test coverage detected