To dream of an eclipse of the sun indicates self-doubt and fears of not achieving your goals. You feel you are being overshadowed and are underestimating your abilities. Your level of confidence is fading or lost. You may be undergoing some difficult times and unable to remain optimistic.
To see the eclipse of the moon in your dream signifies that your feminine side is being overshadowed. Or it may mean that some hidden aspect of yourself is coming to the surface.
To dream that the eclipse has passed symbolises new light and knowledge. You need to look at a problem from a different perspective.