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

Method getAccess

pkg/basicstation/cups/server.go:84–93  ·  view source on GitHub ↗
(ctx context.Context, _ *ttnpb.GatewayIdentifiers)

Source from the content-addressed store, hash-verified

82}
83
84func (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.
96type Option func(s *Server)

Callers 1

registerGatewayMethod · 0.95

Calls 2

NewGatewayAccessClientFunction · 0.92
GetPeerConnMethod · 0.65

Tested by

no test coverage detected