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

Method GetIdentifiersForEUI

pkg/gatewayserver/is.go:87–93  ·  view source on GitHub ↗

GetIdentifiersForEUI implements EntityRegistry.

(ctx context.Context, req *ttnpb.GetGatewayIdentifiersForEUIRequest)

Source from the content-addressed store, hash-verified

85
86// GetIdentifiersForEUI implements EntityRegistry.
87func (is IS) GetIdentifiersForEUI(ctx context.Context, req *ttnpb.GetGatewayIdentifiersForEUIRequest) (*ttnpb.GatewayIdentifiers, error) {
88 registry, err := is.newRegistryClient(ctx, &ttnpb.GatewayIdentifiers{Eui: req.Eui})
89 if err != nil {
90 return nil, err
91 }
92 return registry.GetIdentifiersForEUI(ctx, req, is.WithClusterAuth())
93}
94
95// Get implements EntityRegistry.
96func (is IS) Get(ctx context.Context, req *ttnpb.GetGatewayRequest) (*ttnpb.Gateway, error) {

Callers

nothing calls this directly

Calls 3

newRegistryClientMethod · 0.95
GetIdentifiersForEUIMethod · 0.65
WithClusterAuthMethod · 0.65

Tested by

no test coverage detected