Breast feeding/pumping

So I'm back and forth about whether or not I should. I'm worried about having to pump at work. I usually work 9-10 hours a day. Would i be able to pump just while I'm at home or would i need to do it during the day too? I don't want to be in pain all day.