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

Function _Worker_Backup_Handler

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

Source from the content-addressed store, hash-verified

6484}
6485
6486func _Worker_Backup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6487 in := new(BackupRequest)
6488 if err := dec(in); err != nil {
6489 return nil, err
6490 }
6491 if interceptor == nil {
6492 return srv.(WorkerServer).Backup(ctx, in)
6493 }
6494 info := &grpc.UnaryServerInfo{
6495 Server: srv,
6496 FullMethod: "/pb.Worker/Backup",
6497 }
6498 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6499 return srv.(WorkerServer).Backup(ctx, req.(*BackupRequest))
6500 }
6501 return interceptor(ctx, in, info, handler)
6502}
6503
6504func _Worker_Restore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6505 in := new(RestoreRequest)

Callers

nothing calls this directly

Calls 1

BackupMethod · 0.65

Tested by

no test coverage detected