Documentation
¶
Overview ¶
Package app implements most of the application logic
Index ¶
- type App
- func (app *App) GetAllFileUploadsByUploadID(uploadID uint) ([]*models.FileUpload, error)
- func (app *App) GetAllJobs() ([]*models.Job, error)
- func (app *App) GetAllUploads() ([]*models.Upload, error)
- func (app *App) GetUploadDSC(uploadID uint) (io.ReadCloser, error)
- func (app *App) GetUploadFile(uploadID uint, filename string) (io.ReadCloser, error)
- func (app *App) ProcessUpload(uploadParameters *UploadParameters, content io.Reader) (*models.Upload, error)
- func (app *App) UnqueueNextJob() (*models.Job, error)
- func (app *App) UploadedFilesDirectory() string
- func (app *App) UploadsDirectory() string
- type UploadParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is an autodeb server application
func (*App) GetAllFileUploadsByUploadID ¶ added in v0.3.0
func (app *App) GetAllFileUploadsByUploadID(uploadID uint) ([]*models.FileUpload, error)
GetAllFileUploadsByUploadID returns all FileUploads associated to an upload
func (*App) GetAllJobs ¶
GetAllJobs returns all jobs
func (*App) GetAllUploads ¶
GetAllUploads returns all uploads
func (*App) GetUploadDSC ¶ added in v0.3.0
func (app *App) GetUploadDSC(uploadID uint) (io.ReadCloser, error)
GetUploadDSC returns the DSC of the upload with a matching id
func (*App) GetUploadFile ¶ added in v0.3.0
GetUploadFile returns the file associated with the upload id and filename
func (*App) ProcessUpload ¶
func (app *App) ProcessUpload(uploadParameters *UploadParameters, content io.Reader) (*models.Upload, error)
ProcessUpload processes uploads
func (*App) UnqueueNextJob ¶ added in v0.3.0
UnqueueNextJob returns the next job and marks it as assigned
func (*App) UploadedFilesDirectory ¶
UploadedFilesDirectory contains files that are not yet associated with a package upload.
func (*App) UploadsDirectory ¶
UploadsDirectory contains completed uploads.
type UploadParameters ¶
type UploadParameters = uploads.UploadParameters
UploadParameters define upload options