Module is a type that is used as a Caddy module. In addition to this interface, most modules will implement some interface expected by their host module in order to be useful. To learn which interface(s) to implement, see the documentation for the host module. At a bare minimum, this interface, when
| 52 | // 6) When a module's containing Context is canceled, if it is |
| 53 | // a CleanerUpper, its Cleanup() method is called. |
| 54 | type Module interface { |
| 55 | // This method indicates that the type is a Caddy |
| 56 | // module. The returned ModuleInfo must have both |
| 57 | // a name and a constructor function. This method |
| 58 | // must not have any side-effects. |
| 59 | CaddyModule() ModuleInfo |
| 60 | } |
| 61 | |
| 62 | // ModuleInfo represents a registered Caddy module. |
| 63 | type ModuleInfo struct { |
no outgoing calls
no test coverage detected