MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / Set

Method Set

pkg/modules/webhook/pool_safe_context.go:54–58  ·  view source on GitHub ↗

Set writes to the detached store, not the embedded context's pooled store. This prevents downstream middleware writes from leaking into a later request that claims the same pooled context.

(key string, val any)

Source from the content-addressed store, hash-verified

52// store. This prevents downstream middleware writes from leaking into a
53// later request that claims the same pooled context.
54func (p *poolSafeContext) Set(key string, val any) {
55 p.mu.Lock()
56 defer p.mu.Unlock()
57 p.store[key] = val
58}

Callers 15

TestClientRequestFunction · 0.80
StartMethod · 0.80
latencyMiddlewareFunction · 0.80
rootPathMiddlewareFunction · 0.80
outputFilenameMiddlewareFunction · 0.80
telemetryMiddlewareFunction · 0.80
contextMiddlewareFunction · 0.80
newContextFunction · 0.80

Calls

no outgoing calls