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

Function _Worker_MovePredicate_Handler

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

Source from the content-addressed store, hash-verified

1437}
1438
1439func _Worker_MovePredicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1440 in := new(MovePredicatePayload)
1441 if err := dec(in); err != nil {
1442 return nil, err
1443 }
1444 if interceptor == nil {
1445 return srv.(WorkerServer).MovePredicate(ctx, in)
1446 }
1447 info := &grpc.UnaryServerInfo{
1448 Server: srv,
1449 FullMethod: Worker_MovePredicate_FullMethodName,
1450 }
1451 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1452 return srv.(WorkerServer).MovePredicate(ctx, req.(*MovePredicatePayload))
1453 }
1454 return interceptor(ctx, in, info, handler)
1455}
1456
1457func _Worker_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error {
1458 m := new(SubscriptionRequest)

Callers

nothing calls this directly

Calls 1

MovePredicateMethod · 0.65

Tested by

no test coverage detected