(ctx context.Context, _ *ttnpb.GatewayIdentifiers)
| 82 | } |
| 83 | |
| 84 | func (s *Server) getAccess(ctx context.Context, _ *ttnpb.GatewayIdentifiers) (ttnpb.GatewayAccessClient, error) { |
| 85 | if s.access != nil { |
| 86 | return s.access, nil |
| 87 | } |
| 88 | cc, err := s.component.GetPeerConn(ctx, ttnpb.ClusterRole_ACCESS, nil) |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | return ttnpb.NewGatewayAccessClient(cc), nil |
| 93 | } |
| 94 | |
| 95 | // Option configures the CUPSServer. |
| 96 | type Option func(s *Server) |
no test coverage detected