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

Function FromIncomingContext

pkg/rpcmetadata/metadata.go:144–147  ·  view source on GitHub ↗

FromIncomingContext returns The Things Stack metadata from the incoming context ctx.

(ctx context.Context)

Source from the content-addressed store, hash-verified

142
143// FromIncomingContext returns The Things Stack metadata from the incoming context ctx.
144func FromIncomingContext(ctx context.Context) (m MD) {
145 md, _ := metadata.FromIncomingContext(ctx)
146 return FromMetadata(md)
147}

Callers 15

AssertGatewayRightsMethod · 0.92
newReqFunction · 0.92
verifySourceFunction · 0.92
LinkGatewayMethod · 0.92
GetConcentratorConfigMethod · 0.92
server_test.goFile · 0.92
handleGetGatewayMethod · 0.92
WithAuthFromContextFunction · 0.92

Calls 1

FromMetadataFunction · 0.85

Tested by 6

AssertGatewayRightsMethod · 0.74
TestMDFunction · 0.68
TestRequestMetadataFunction · 0.68