file

package
v0.0.0-...-7bf970c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package file has the handler to process the requests related to files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessColumns

func ProcessColumns(ctx context.Context, w http.ResponseWriter, r *http.Request)

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

func StartValidating(a *config.AppContext, f libfile.File) (bool, error)

StartValidating will start validating a given file

func UpdateUpload

func UpdateUpload(ctx context.Context, w http.ResponseWriter, r *http.Request)

UpdateUpload updates the uploaded file with a new upload

func UploadToDatastore

func UploadToDatastore(ctx context.Context, w http.ResponseWriter, r *http.Request)

UploadToDatastore will upload the file to the datastore with minimum datasets stored in it

func Validate

func Validate(ctx context.Context, w http.ResponseWriter, r *http.Request)

Validate will start the process of validating a file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL