MCPcopy Create free account
hub / github.com/caddyserver/caddy / CaddyModule

Method CaddyModule

modules/logging/encoders.go:86–91  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

84
85// CaddyModule returns the Caddy module information.
86func (JSONEncoder) CaddyModule() caddy.ModuleInfo {
87 return caddy.ModuleInfo{
88 ID: "caddy.logging.encoders.json",
89 New: func() caddy.Module { return new(JSONEncoder) },
90 }
91}
92
93// Provision sets up the encoder.
94func (je *JSONEncoder) Provision(_ caddy.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected