Find your nearest La Leche League and go to a meeting. Buy their book The Womanly Art of Breastfeeding. Ask the leader and other mothers there for their advice: you will get support and positive feedback and encouragement. Don't battle on in isolation. They helped me survive!
Lower your housekeeping standards - drop everything when she sleeps - lie down yourself and sleep. Don't use those times to catch up on laundry, etc. I made this mistake and it was dreadful. Housework can keep - babies grow up fast, and they are more important. Can your partner or a friend (maybe another La Leche League mother) take your baby out to a park and give you time to sleep?
How much stimulation does your baby get - going out, visiting a park or 'reading' picture books to her, etc. to tire her out.
Play classical music to relax both of you? Do you have a comfortable rocking chair? Do you get out into nature yourself? Cabin fever is enervating.
If it's teething, the homoeopathic remedy that saved my sanity is Calc phos. Speak to Ainsworths Pharmacy. It really works! I tried everything else without success.
Remember that children only learn when they are awake, so you most likely have an exceptionally intelligent baby.
An occasional small glass of wine or beer (Vitamin B) won't do any harm.
This will soon pass, but you must get sleep.