A gang member who opened fire on a crowd of mourners attending a wake has been jailed for life with a minimum term of 24 years after a judge said the shooting had caused “utter terror”.