Sonatas in the Baroque period are different to those in the Classical and onwards periods.
All I know regarding their structure is that they typically contain only one movement (eg Scarlatti's harpsichord sonatas) and that within this single movement there consists an exposition (or commonly an introductory passage), a development, recapitulation and all these funny different modulatory and transitionary sections.
o_O