Swing gates and sliding gates, for example ... For the most secure lock, try a bolt gate latch or you can add a deadbolt or ...
You might find a slider mechanism as a latch on a gate ... You may have seen a lock like this on a gate or a door. This lock works by using a slider mechanism. The bolt slides across and stops ...