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

Method RegisterGRPC

pkg/component/grpc.go:94–99  ·  view source on GitHub ↗

RegisterGRPC registers a gRPC subsystem to the component.

(s rpcserver.Registerer)

Source from the content-addressed store, hash-verified

92
93// RegisterGRPC registers a gRPC subsystem to the component.
94func (c *Component) RegisterGRPC(s rpcserver.Registerer) {
95 if c.GRPC == nil {
96 c.initGRPC()
97 }
98 c.grpcSubsystems = append(c.grpcSubsystems, s)
99}
100
101// WithClusterAuth that can be used to identify a component within a cluster.
102func (c *Component) WithClusterAuth() grpc.CallOption {

Callers 15

TestAuthenticationFunction · 0.95
TestConcentratorConfigFunction · 0.95
TestMQTTConfigFunction · 0.95
TestAuthenticationFunction · 0.95
TestAssociationsFunction · 0.95
TestAuthenticationFunction · 0.95
TestTrafficFunction · 0.95
TestMQTTConfigFunction · 0.95
TestSimulateUplinkFunction · 0.95
TestMessageProcessorsFunction · 0.95
TestIntegrateFunction · 0.95
TestWebhookRegistryRPCFunction · 0.95

Implementers 1

Componentpkg/component/component.go

Calls 1

initGRPCMethod · 0.95

Tested by 13

TestAuthenticationFunction · 0.76
TestConcentratorConfigFunction · 0.76
TestMQTTConfigFunction · 0.76
TestAuthenticationFunction · 0.76
TestAssociationsFunction · 0.76
TestAuthenticationFunction · 0.76
TestTrafficFunction · 0.76
TestMQTTConfigFunction · 0.76
TestSimulateUplinkFunction · 0.76
TestMessageProcessorsFunction · 0.76
TestIntegrateFunction · 0.76
TestWebhookRegistryRPCFunction · 0.76