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

Method Module

context.go:663–668  ·  view source on GitHub ↗

Module returns the current module, or the most recent one provisioned by the context.

()

Source from the content-addressed store, hash-verified

661// Module returns the current module, or the most recent one
662// provisioned by the context.
663func (ctx Context) Module() Module {
664 if len(ctx.ancestry) == 0 {
665 return nil
666 }
667 return ctx.ancestry[len(ctx.ancestry)-1]
668}
669
670// WithValue returns a new context with the given key-value pair.
671func (ctx *Context) WithValue(key, value any) Context {

Callers 3

LoggerMethod · 0.95
SloggerMethod · 0.95
NewEventFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected