MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / RegisterNodeAgentServer

Function RegisterNodeAgentServer

internal/pb/nodev1/node_grpc.pb.go:87–96  ·  view source on GitHub ↗
(s grpc.ServiceRegistrar, srv NodeAgentServer)

Source from the content-addressed store, hash-verified

85}
86
87func RegisterNodeAgentServer(s grpc.ServiceRegistrar, srv NodeAgentServer) {
88 // If the following call panics, it indicates UnimplementedNodeAgentServer was
89 // embedded by pointer and is nil. This will cause panics if an
90 // unimplemented method is ever invoked, so we test this at initialization
91 // time to prevent it from happening at runtime later due to I/O.
92 if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
93 t.testEmbeddedByValue()
94 }
95 s.RegisterService(&NodeAgent_ServiceDesc, srv)
96}
97
98func _NodeAgent_Session_Handler(srv interface{}, stream grpc.ServerStream) error {
99 return srv.(NodeAgentServer).Session(&grpc.GenericServerStream[NodeMessage, ServerMessage]{ServerStream: stream})

Callers 8

startBufHubFunction · 0.92
startTCPHubFunction · 0.92
startMTLSHubFunction · 0.92
startMockServerFunction · 0.92
startHubFunction · 0.92
newTestEnvFunction · 0.92
TestLoad_ConcurrentNodesFunction · 0.92
startNodeHubFunction · 0.92

Calls 1

testEmbeddedByValueMethod · 0.80

Tested by 7

startBufHubFunction · 0.74
startTCPHubFunction · 0.74
startMTLSHubFunction · 0.74
startMockServerFunction · 0.74
startHubFunction · 0.74
newTestEnvFunction · 0.74
TestLoad_ConcurrentNodesFunction · 0.74