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

Struct Adapter

caddyconfig/caddyfile/adapter.go:27–29  ·  view source on GitHub ↗

Adapter adapts Caddyfile to Caddy JSON.

Source from the content-addressed store, hash-verified

25
26// Adapter adapts Caddyfile to Caddy JSON.
27type Adapter struct {
28 ServerType ServerType
29}
30
31// Adapt converts the Caddyfile config in body to Caddy JSON.
32func (a Adapter) Adapt(body []byte, options map[string]any) ([]byte, []caddyconfig.Warning, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected