A peace officer is a sheriff of a county, or a constable, marshal, or policeman of a city or town.