Both. Viral pink eye is like a common cold in the eye. There is no treatment for the virus and usually you just have to let it heal on its own. Viral pink eye should go away within a week or two without treatment. Bacterial pink eye usually produces more mucus or pus than viral or allergic pink eye. Bacterial pink eye can be treated with antibiotics prescribed by a doctor.