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

Interface Unmarshaler

caddyconfig/caddyfile/adapter.go:106–108  ·  caddyconfig/caddyfile/adapter.go::Unmarshaler

Unmarshaler is a type that can unmarshal Caddyfile tokens to set itself up for a JSON encoding. The goal of an unmarshaler is not to set itself up for actual use, but to set itself up for being marshaled into JSON. Caddyfile-unmarshaled values will not be used directly; they will be encoded as JSON

Source from the content-addressed store, hash-verified

104// `d.Next()` at the start should be used to consume the module
105// identifier token (directive name, etc).
106type Unmarshaler interface {
107 UnmarshalCaddyfile(d *Dispenser) error
108}
109
110// ServerType is a type that can evaluate a Caddyfile and set up a caddy config.
111type ServerType interface {

Callers 8

parseCaddyfileFunction · 0.65
parseCaddyfileFunction · 0.65
parseCaddyfileFunction · 0.65
parseCaddyfileFunction · 0.65

Implementers 15

Tailscalemodules/caddytls/certmanagers.go
HTTPCertGettermodules/caddytls/certmanagers.go
InlineCAPoolmodules/caddytls/capools.go
FileCAPoolmodules/caddytls/capools.go
PKIRootCAPoolmodules/caddytls/capools.go
PKIIntermediateCAPoolmodules/caddytls/capools.go
StoragePoolmodules/caddytls/capools.go
HTTPCertPoolmodules/caddytls/capools.go
SystemCAPoolmodules/caddytls/capools.go
CombinedCAPoolmodules/caddytls/capools.go
LeafPEMLoadermodules/caddytls/leafpemloader.go
ZeroSSLIssuermodules/caddytls/zerosslissuer.go

Calls

no outgoing calls

Tested by

no test coverage detected