The PI. Classically hard-boiled, male, often drunk, and frequently violent. Living on his wits in a rough, tough town, surrounded by crooked cops, corrupt politicians, and organized crime.
For the foundational stuff, you’ll want to acquaint yourself with Dash Hammett and Raymond Chandler.