The correct answer is County Marshals and Town Sheriffs. They were independent from any type of federal police and were often chosen by the local community to be their protectors. It's the kind of officers you can see in western movies where the sheriff of a town has to fight criminals who come to rob them.