MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetSetServiceDataFromContext

Function GetSetServiceDataFromContext

backend/common/context.go:26–29  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

24}
25
26func GetSetServiceDataFromContext(ctx context.Context) (func(a *anypb.Any), bool) {
27 setServiceData, ok := ctx.Value(ServiceDataKey).(func(*anypb.Any))
28 return setServiceData, ok
29}
30
31// WithSetAuditWorkspaceID registers a callback handlers can use to tell the
32// audit interceptor which workspace a request should be audited against. This

Callers 3

SetIamPolicyMethod · 0.92
UpdateSettingMethod · 0.92
SetIamPolicyMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected