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

Function _Worker_Schema_Handler

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

Source from the content-addressed store, hash-verified

6466}
6467
6468func _Worker_Schema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6469 in := new(SchemaRequest)
6470 if err := dec(in); err != nil {
6471 return nil, err
6472 }
6473 if interceptor == nil {
6474 return srv.(WorkerServer).Schema(ctx, in)
6475 }
6476 info := &grpc.UnaryServerInfo{
6477 Server: srv,
6478 FullMethod: "/pb.Worker/Schema",
6479 }
6480 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6481 return srv.(WorkerServer).Schema(ctx, req.(*SchemaRequest))
6482 }
6483 return interceptor(ctx, in, info, handler)
6484}
6485
6486func _Worker_Backup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6487 in := new(BackupRequest)

Callers

nothing calls this directly

Calls 1

SchemaMethod · 0.65

Tested by

no test coverage detected