Documentation ¶
Overview ¶
Package models contains the models required by the file uploader service
Index ¶
Constants ¶
View Source
const ( //FileUploadStatusUploaded indicates that the file has been uploaded FileUploadStatusUploaded = "UPLOADED" //FileUploadStatusValidatingError indicates that the validation occurred due to some error FileUploadStatusValidatingError = "VALIDATING_ERROR" //FileUploadStatusValidated indicates that the validation process is completed. The errors will be available in the file upoload error records for the file FileUploadStatusValidated = "VALIDATED" )
View Source
const (
//FileUploadTypeCSV indicates that the uploaded file's type is csv
FileUploadTypeCSV = "CSV"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDataset ¶
type FileDataset struct { //Info has the info about the dataset Info FileUpload //Errors has the list errors of the dataset upload Errors []FileUploadError }
FileDataset has the info about an uploaded datatset and its errors
type FileUpload ¶
type FileUpload struct { gorm.Model //Name of the upload Name string //UserID is the id of the user with whom the file is associated with UserID uint //Location is the location where the file is stored Location string //Type is the type of file uploaded Type string //Status is the status of the uploaded file Status string }
FileUpload represents the file uploads in the system
Click to show internal directories.
Click to hide internal directories.