MCPcopy Index your code
hub / github.com/rilldata/rill / invocationFromContext

Function invocationFromContext

runtime/controller.go:1610–1616  ·  view source on GitHub ↗

invocationFromContext retrieves an invocation from a context. If no invocation is in the context, it returns nil.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1608// invocationFromContext retrieves an invocation from a context.
1609// If no invocation is in the context, it returns nil.
1610func invocationFromContext(ctx context.Context) *invocation {
1611 inv := ctx.Value(invocationCtxKey{})
1612 if inv != nil {
1613 return inv.(*invocation)
1614 }
1615 return nil
1616}

Callers 6

DeleteMethod · 0.85
LockMethod · 0.85
UnlockMethod · 0.85
lockMethod · 0.85
unlockMethod · 0.85

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected