db: Add docstrings to FileUpload; NFC

This commit is contained in:
Daan Sprenkels 2020-04-22 15:59:51 +02:00
parent 3da165a57b
commit 63a588ba59
1 changed files with 16 additions and 4 deletions

View File

@ -31,10 +31,22 @@ type FileUploadState int
// FileUpload models an uploaded file.
type FileUpload struct {
// State of the FileUpload (present/deleted/etc).
State FileUploadState
// ID identifies this FileUpload.
ID uuid.UUID
// FileName contains the original filename of this FileUpload.
FileName string
// Content type as determined by http.DetectContentType.
ContentType string
// Checksum holds a crc32c checksum of the file.
//
// This checksum is only meant to allow for the detection of random
// database corruption.
Checksum uint32
}