05c7eae8a2
- Introduced a new configuration file for the TED scraper, defining database connection settings, logging preferences, and scraping parameters. - Implemented a CronScheduler to manage scheduled tasks for TED operations, utilizing the robfig/cron library for scheduling. - Added new entities and structures for handling TED XML data, including eForms and tender-related information, enhancing the scraper's functionality. - Updated the main application to initialize the TED scraper with the new configuration and set up graceful shutdown handling. - Removed the deprecated scraping implementation to streamline the codebase and focus on the new architecture.
29 lines
1.1 KiB
Go
29 lines
1.1 KiB
Go
package eform
|
|
|
|
import "encoding/xml"
|
|
|
|
// =====================================================
|
|
// TENDERING PROCESS
|
|
// =====================================================
|
|
|
|
// TenderingProcess represents the tendering process
|
|
type TenderingProcess struct {
|
|
XMLName xml.Name `xml:"TenderingProcess"`
|
|
ProcedureCode string `xml:"ProcedureCode"`
|
|
ProcessJustification ProcessJustification `xml:"ProcessJustification,omitempty"`
|
|
TenderSubmissionDeadlinePeriod TenderSubmissionDeadlinePeriod `xml:"TenderSubmissionDeadlinePeriod,omitempty"`
|
|
}
|
|
|
|
// ProcessJustification represents process justification
|
|
type ProcessJustification struct {
|
|
XMLName xml.Name `xml:"ProcessJustification"`
|
|
ProcessReasonCode string `xml:"ProcessReasonCode"`
|
|
}
|
|
|
|
// TenderSubmissionDeadlinePeriod represents the deadline for tender submission
|
|
type TenderSubmissionDeadlinePeriod struct {
|
|
XMLName xml.Name `xml:"TenderSubmissionDeadlinePeriod"`
|
|
EndDate string `xml:"EndDate"`
|
|
EndTime string `xml:"EndTime,omitempty"`
|
|
}
|