Eye infection?

So I just woke up this morning to this & I was wondering what this could be and what are some treatments? Also, every time i blink it hurts.