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

Function ActiveContext

caddy.go:1197–1201  ·  view source on GitHub ↗

ActiveContext returns the currently-active context. This function is experimental and might be changed or removed in the future.

()

Source from the content-addressed store, hash-verified

1195// This function is experimental and might be changed
1196// or removed in the future.
1197func ActiveContext() Context {
1198 currentCtxMu.RLock()
1199 defer currentCtxMu.RUnlock()
1200 return currentCtx
1201}
1202
1203// CtxKey is a value type for use with context.WithValue.
1204type CtxKey string

Callers 1

exitProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected