(ctx context.Context, _ *ttnpb.GatewayIdentifiers)
| 71 | } |
| 72 | |
| 73 | func (s *Server) getRegistry(ctx context.Context, _ *ttnpb.GatewayIdentifiers) (ttnpb.GatewayRegistryClient, error) { |
| 74 | if s.registry != nil { |
| 75 | return s.registry, nil |
| 76 | } |
| 77 | cc, err := s.component.GetPeerConn(ctx, ttnpb.ClusterRole_ENTITY_REGISTRY, nil) |
| 78 | if err != nil { |
| 79 | return nil, err |
| 80 | } |
| 81 | return ttnpb.NewGatewayRegistryClient(cc), nil |
| 82 | } |
| 83 | |
| 84 | func (s *Server) getAccess(ctx context.Context, _ *ttnpb.GatewayIdentifiers) (ttnpb.GatewayAccessClient, error) { |
| 85 | if s.access != nil { |
no test coverage detected