GetAdapter returns the adapter with the given name, or nil if one with that name is not registered.
(name string)
| 119 | // GetAdapter returns the adapter with the given name, |
| 120 | // or nil if one with that name is not registered. |
| 121 | func 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 |
no outgoing calls