MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / fetcherFromContext

Function fetcherFromContext

pkg/auth/rights/fetcher.go:111–116  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

109}
110
111func fetcherFromContext(ctx context.Context) (Fetcher, bool) {
112 if fetcher, ok := ctx.Value(fetcherKey).(Fetcher); ok {
113 return fetcher, true
114 }
115 return nil, false
116}
117
118var errNoFetcher = errors.DefineInternal("no_fetcher", "no fetcher found in context")
119

Callers 6

AuthInfoFunction · 0.70
ListApplicationFunction · 0.70
ListClientFunction · 0.70
ListGatewayFunction · 0.70
ListOrganizationFunction · 0.70
ListUserFunction · 0.70

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected