hing to attach galv pipe to make hatch prop

I hope I can explain this, and since you all have already mastered every possible way to make homemade hatch props, I'll pick your brain.
I know the benefits of purchased gas struts, and MJ's gasless gas props, but I have some good 1/2" galv pipe and would like to attach it at the hatch end, and then be able "fold" it across towards the center of the hatch inside. Then when raising the hatch, just unhook and pull it down, and secure it at a spot onthe outer edge of the galley counter.
What I'm trying to find or come up with is the best, secure way to have a hinge or how to connect it with some kind of bracket/bold/hinge or something at the edge of the hatch....
I've brainstormed with a couple of friends, about a swivel bracket or swivel hinge and found one at Ace hdwe but it didn't fold flat...
Clear as mud? thanks!

I know the benefits of purchased gas struts, and MJ's gasless gas props, but I have some good 1/2" galv pipe and would like to attach it at the hatch end, and then be able "fold" it across towards the center of the hatch inside. Then when raising the hatch, just unhook and pull it down, and secure it at a spot onthe outer edge of the galley counter.
What I'm trying to find or come up with is the best, secure way to have a hinge or how to connect it with some kind of bracket/bold/hinge or something at the edge of the hatch....
I've brainstormed with a couple of friends, about a swivel bracket or swivel hinge and found one at Ace hdwe but it didn't fold flat...
Clear as mud? thanks!