forked from electricdusk/rushlink
db: Add docstrings to FileUpload; NFC
This commit is contained in:
parent
3da165a57b
commit
63a588ba59
@ -31,11 +31,23 @@ type FileUploadState int
|
|||||||
|
|
||||||
// FileUpload models an uploaded file.
|
// FileUpload models an uploaded file.
|
||||||
type FileUpload struct {
|
type FileUpload struct {
|
||||||
State FileUploadState
|
// State of the FileUpload (present/deleted/etc).
|
||||||
ID uuid.UUID
|
State FileUploadState
|
||||||
FileName string
|
|
||||||
|
// 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
|
ContentType string
|
||||||
Checksum uint32
|
|
||||||
|
// Checksum holds a crc32c checksum of the file.
|
||||||
|
//
|
||||||
|
// This checksum is only meant to allow for the detection of random
|
||||||
|
// database corruption.
|
||||||
|
Checksum uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user