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

Method newRegistryClient

pkg/gatewayserver/is.go:178–184  ·  view source on GitHub ↗
(ctx context.Context, _ *ttnpb.GatewayIdentifiers)

Source from the content-addressed store, hash-verified

176}
177
178func (is IS) newRegistryClient(ctx context.Context, _ *ttnpb.GatewayIdentifiers) (ttnpb.GatewayRegistryClient, error) {
179 cc, err := is.GetPeerConn(ctx, ttnpb.ClusterRole_ENTITY_REGISTRY, nil)
180 if err != nil {
181 return nil, err
182 }
183 return ttnpb.NewGatewayRegistryClient(cc), nil
184}
185
186func (is IS) newGatewayBatchAccessClient(ctx context.Context) (ttnpb.GatewayBatchAccessClient, error) {
187 cc, err := is.GetPeerConn(ctx, ttnpb.ClusterRole_ENTITY_REGISTRY, nil)

Callers 4

GetIdentifiersForEUIMethod · 0.95
GetMethod · 0.95
UpdateAntennasMethod · 0.95
UpdateAttributesMethod · 0.95

Calls 2

NewGatewayRegistryClientFunction · 0.92
GetPeerConnMethod · 0.65

Tested by

no test coverage detected