Documentation ¶
Overview ¶
files contains database actions relating to stored files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func CreateFile(ctx context.Context, file *models.StoredFile) error
CreateFile inserts the given file into the database. If the file already existed, the URL will be updated instead.
Types ¶
type FileList ¶
type FileList []*models.StoredFile
A FileList is a slice of StoredFiles
func (FileList) ToHandlerFiles ¶
func (s FileList) ToHandlerFiles() []*filepb.FileHandle
ToHandlerFiles converts a stored file list into a list of handles for the FileHandlerService.
Click to show internal directories.
Click to hide internal directories.