files

package
v0.0.0-...-1388524 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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