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

Function GetAdapter

caddyconfig/configadapters.go:121–123  ·  view source on GitHub ↗

GetAdapter returns the adapter with the given name, or nil if one with that name is not registered.

(name string)

Source from the content-addressed store, hash-verified

119// GetAdapter returns the adapter with the given name,
120// or nil if one with that name is not registered.
121func GetAdapter(name string) Adapter {
122 return configAdapters[name]
123}
124
125// adapterModule is a wrapper type that can turn any config
126// adapter into a Caddy module, which has the benefit of being

Callers 7

cmdAdaptConfigFunction · 0.92
loadConfigWithLoggerFunction · 0.92
ensureConfigRunningMethod · 0.92
CompareAdaptFunction · 0.92
TestCaddyfileAdaptToJSONFunction · 0.92
adaptByContentTypeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCaddyfileAdaptToJSONFunction · 0.74