MCPcopy
hub / github.com/dgraph-io/dgraph / _Zero_Connect_Handler

Function _Zero_Connect_Handler

protos/pb/pb_grpc.pb.go:579–595  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

577}
578
579func _Zero_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
580 in := new(Member)
581 if err := dec(in); err != nil {
582 return nil, err
583 }
584 if interceptor == nil {
585 return srv.(ZeroServer).Connect(ctx, in)
586 }
587 info := &grpc.UnaryServerInfo{
588 Server: srv,
589 FullMethod: Zero_Connect_FullMethodName,
590 }
591 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
592 return srv.(ZeroServer).Connect(ctx, req.(*Member))
593 }
594 return interceptor(ctx, in, info, handler)
595}
596
597func _Zero_UpdateMembership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
598 in := new(Group)

Callers

nothing calls this directly

Calls 1

ConnectMethod · 0.65

Tested by

no test coverage detected