MCPcopy Create free account
hub / github.com/netlify/gotrue / withInstance

Function withInstance

api/context.go:100–102  ·  view source on GitHub ↗

withInstance adds the instance id to the context.

(ctx context.Context, i *models.Instance)

Source from the content-addressed store, hash-verified

98
99// withInstance adds the instance id to the context.
100func withInstance(ctx context.Context, i *models.Instance) context.Context {
101 return context.WithValue(ctx, instanceKey, i)
102}
103
104// getInstance reads the instance id from the context.
105func getInstance(ctx context.Context) *models.Instance {

Callers 1

loadInstanceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…