I had something like that and it was bacterial pinkeye. Treated with antibiotics.
It was super gross, and because I'm not good about going to the doctor, it got to the point where I could barely see, but it was actually much less uncomfortable or itchy than normal viral pinkeye.