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

Interface Module

modules.go:54–60  ·  modules.go::Module

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

Source from the content-addressed store, hash-verified

52// 6) When a module's containing Context is canceled, if it is
53// a CleanerUpper, its Cleanup() method is called.
54type 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.
63type ModuleInfo struct {

Callers 8

RegisterModuleFunction · 0.65
GetModuleNameFunction · 0.65
GetModuleIDFunction · 0.65
LoggerMethod · 0.65
SloggerMethod · 0.65
finishSettingUpFunction · 0.65
CloudEventMethod · 0.65
PublisherKeyMethod · 0.65

Implementers 15

StdoutWriterlogging.go
StderrWriterlogging.go
DiscardWriterlogging.go
fooModuleadmin_test.go
mockModuleadmin_test.go
mockIssuerModuleadmin_test.go
PKImodules/caddypki/pki.go
adminAPImodules/caddypki/adminapi.go
Handlermodules/caddypki/acmeserver/acmeserver
LeafStorageLoadermodules/caddytls/leafstorageloader.go
Tailscalemodules/caddytls/certmanagers.go

Calls

no outgoing calls

Tested by

no test coverage detected