Moduli spaces of shtukas over function fields