Documentation ¶
Overview ¶
Package file has the handler to process the requests related to files
Index ¶
- func ProcessColumns(ctx context.Context, w http.ResponseWriter, r *http.Request)
- func StartPipelineProcess(a *config.AppContext, fU *db.FileUpload, appendFlag bool)
- func StartProcessingColumns(a *config.AppContext, f libfile.File) error
- func StartUploadingToDatastore(a *config.AppContext, f libfile.File, appendFlag bool) (*db.Dataset, error)
- func StartValidating(a *config.AppContext, f libfile.File) (bool, error)
- func UpdateUpload(ctx context.Context, w http.ResponseWriter, r *http.Request)
- func UploadToDatastore(ctx context.Context, w http.ResponseWriter, r *http.Request)
- func Validate(ctx context.Context, w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessColumns ¶
ProcessColumns will process the columns in an uploaded data file. If the columns are available, it will validate their data type same with file. Else it will identify the column and store them the database
func StartPipelineProcess ¶
func StartPipelineProcess(a *config.AppContext, fU *db.FileUpload, appendFlag bool)
StartPipelineProcess will start the pipeline of uploading file to data store pipeline
func StartProcessingColumns ¶
func StartProcessingColumns(a *config.AppContext, f libfile.File) error
StartProcessingColumns will start processing the columns of a given file
func StartUploadingToDatastore ¶
func StartUploadingToDatastore(a *config.AppContext, f libfile.File, appendFlag bool) (*db.Dataset, error)
StartUploadingToDatastore will start uploading the file to data store
func StartValidating ¶
StartValidating will start validating a given file
func UpdateUpload ¶
UpdateUpload updates the uploaded file with a new upload
func UploadToDatastore ¶
UploadToDatastore will upload the file to the datastore with minimum datasets stored in it
Types ¶
This section is empty.