Documentation
¶
Index ¶
Constants ¶
View Source
const RFPStatusCreated = "Created"
View Source
const RFPStatusFinished = "Finished"
View Source
const RFPStatusFinishedWithError = "Finished With Error"
View Source
const RFPtatusProcessing = "Processing"
Variables ¶
This section is empty.
Functions ¶
func DeleteManyFiles ¶
func DeleteManyFiles(paths []string)
func DownloadManyFile ¶
func GenerateQuestionJSON ¶
func GenerateQuestionJSON(requirements []Requirement) ([]string, error)
Types ¶
type Equipment ¶
type Equipment struct {
Id uint `json:"id"`
Name string `json:"name" validate:"required"`
DownloadLink string `json:"download_link" validate:"required"`
UserId uint `json:"user_id"`
}
func NewEquipment ¶
func (*Equipment) DownLoadFile ¶
func (*Equipment) TestDownloadLink ¶
type QuestionMap ¶
func ConcatResults ¶
func ConcatResults(results []*Result) *QuestionMap
type RFP ¶
type RFP struct {
Id uint `json:"id" gorm:"primaryKey"`
UserId uint `json:"-"`
Name string `json:"name" gorm:"unique" validate:"required"`
CreationDate *time.Time `json:"creation_date"`
EndDate *time.Time `json:"end_date"`
Status string `json:"status"`
Requirements []Requirement `json:"requirements" gorm:"foreignKey:RFPId;references:Id"`
Equipments []Equipment `json:"equipments" gorm:"foreignKey:id;many2many:rfp_equipment;"`
}
type Requirement ¶
Click to show internal directories.
Click to hide internal directories.