Documentation ¶
Overview ¶
Package record handles the proof database record.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrColVals = errors.New("each database value must have a matching table column") ErrID = errors.New("record id cannot be empty") ErrProof = errors.New("proof structure cannot be empty") ErrRecord = errors.New("record structure cannot be empty") ErrPointer = errors.New("pointer value cannot be nil") )
Functions ¶
Types ¶
type Proof ¶ added in v1.11.0
type Proof struct { Base string // Base is the relative path to file downloads which use UUID as filenames. BasePath string // BasePath to file downloads which use UUID as filenames. Columns []string // Column names. Count int // Count row index. Missing int // Missing UUID files count. Overwrite bool // Overwrite flag (--overwrite) value. Total int // Total rows. Values *[]sql.RawBytes // Values of the rows. // contains filtered or unexported fields }
Proof data.
type Record ¶
type Record struct { ID string // ID is a database generated, auto increment identifier. UUID string // Universal unique ID. File string // File is an absolute path to the hosted file download. Name string // Name is the original filename of the download. }
Record of a file item.
Click to show internal directories.
Click to hide internal directories.