Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeMetadata ¶
Types ¶
type File ¶
type File struct { ID string CreatedAt time.Time OriginalURL string OriginalExpiresAt null.Time ExpiresAt null.Time Size int Hash null.String ContentType null.String Metadata map[string]string }
func (*File) Download ¶
func (f *File) Download(fm *FileManager) (downloadFileResult, error)
type FileManager ¶
func NewFileManager ¶
func NewFileManager(db *db.Database, sftp *sftp.SFTPClient) *FileManager
func (*FileManager) ProcessFile ¶
func (fm *FileManager) ProcessFile(req FileProcessRequest) *FileQueueEntry
func (*FileManager) StartWorkers ¶
func (fm *FileManager) StartWorkers()
func (*FileManager) StopWorkers ¶
func (fm *FileManager) StopWorkers()
func (*FileManager) WaitForFile ¶
func (fm *FileManager) WaitForFile(id string)
type FileProcessRequest ¶
Click to show internal directories.
Click to hide internal directories.