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

Method CaddyModule

modules/caddyhttp/celmatcher.go:80–85  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

78
79// CaddyModule returns the Caddy module information.
80func (MatchExpression) CaddyModule() caddy.ModuleInfo {
81 return caddy.ModuleInfo{
82 ID: "http.matchers.expression",
83 New: func() caddy.Module { return new(MatchExpression) },
84 }
85}
86
87// MarshalJSON marshals m's expression.
88func (m MatchExpression) MarshalJSON() ([]byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected