MCPcopy Create free account
hub / github.com/golang/appengine / WithAppIDOverride

Function WithAppIDOverride

internal/api_common.go:60–62  ·  view source on GitHub ↗
(ctx context.Context, appID string)

Source from the content-addressed store, hash-verified

58var appIDOverrideKey = "holds a string, being the full app ID"
59
60func WithAppIDOverride(ctx context.Context, appID string) context.Context {
61 return context.WithValue(ctx, &appIDOverrideKey, appID)
62}
63
64var apiHostOverrideKey = ctxKey("holds a string, being the alternate API_HOST")
65

Callers 5

NewContextMethod · 0.92
TestSimpleQueryFunction · 0.92
TestQueryToProtoFunction · 0.92
RegisterTestRequestFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestSimpleQueryFunction · 0.74
TestQueryToProtoFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…