MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / _Worker_UpdateGraphQLSchema_Handler

Function _Worker_UpdateGraphQLSchema_Handler

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

Source from the content-addressed store, hash-verified

6603}
6604
6605func _Worker_UpdateGraphQLSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6606 in := new(UpdateGraphQLSchemaRequest)
6607 if err := dec(in); err != nil {
6608 return nil, err
6609 }
6610 if interceptor == nil {
6611 return srv.(WorkerServer).UpdateGraphQLSchema(ctx, in)
6612 }
6613 info := &grpc.UnaryServerInfo{
6614 Server: srv,
6615 FullMethod: "/pb.Worker/UpdateGraphQLSchema",
6616 }
6617 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6618 return srv.(WorkerServer).UpdateGraphQLSchema(ctx, req.(*UpdateGraphQLSchemaRequest))
6619 }
6620 return interceptor(ctx, in, info, handler)
6621}
6622
6623var _Worker_serviceDesc = grpc.ServiceDesc{
6624 ServiceName: "pb.Worker",

Callers

nothing calls this directly

Calls 1

UpdateGraphQLSchemaMethod · 0.65

Tested by

no test coverage detected