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

Method GetPeerConn

pkg/component/cluster.go:65–67  ·  view source on GitHub ↗

GetPeerConn returns a gRPC client connection to the cluster peer. See package ../cluster for more information.

(ctx context.Context, role ttnpb.ClusterRole, ids cluster.EntityIdentifiers)

Source from the content-addressed store, hash-verified

63// GetPeerConn returns a gRPC client connection to the cluster peer.
64// See package ../cluster for more information.
65func (c *Component) GetPeerConn(ctx context.Context, role ttnpb.ClusterRole, ids cluster.EntityIdentifiers) (*grpc.ClientConn, error) {
66 return c.cluster.GetPeerConn(ctx, role, ids)
67}
68
69// ClaimIDs claims the identifiers in the cluster.
70// See package ../cluster for more information.

Callers 1

initRightsMethod · 0.95

Implementers 1

Componentpkg/component/component.go

Calls 1

GetPeerConnMethod · 0.65

Tested by

no test coverage detected