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

Function FallbackIDFromContext

pkg/frequencyplans/context.go:29–32  ·  view source on GitHub ↗

FallbackIDFromContext returns the fallback frequency plan ID and whether it's set using WithFallbackID.

(ctx context.Context)

Source from the content-addressed store, hash-verified

27
28// FallbackIDFromContext returns the fallback frequency plan ID and whether it's set using WithFallbackID.
29func FallbackIDFromContext(ctx context.Context) (string, bool) {
30 id, ok := ctx.Value(fallbackKey).(string)
31 return id, ok
32}

Callers 4

ConnectMethod · 0.92
GetFrequencyPlansMethod · 0.92
handleTrafficMethod · 0.92
TestContextFunction · 0.92

Calls 1

ValueMethod · 0.45

Tested by 1

TestContextFunction · 0.74