Central engines for gamma-ray bursts