Mediation of supersymmetry breaking in gauge messenger models