Documentation ¶
Overview ¶
Package record saves to the database the data collected from the file archive.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrID = errors.New("record does not contain a valid value for the id column") ErrUUID = errors.New("record does not contain a valid value for the uuid column") ErrRawBytes = errors.New("sql rawbytes is missing an expected table columns") ErrStatNil = errors.New("scan stats pointer is nil or the stats.values field is missing") ErrValues = errors.New("the number of values is not the same as the number of columns") )
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { ID string // ID is the database auto increment ID. UUID string // Universal unique Id. File string // File is the absolute path to file archive. Name string // Name of the file archive. Files []string // Files contained in the archive. NFO string // NFO or textfile to display on the site. }
Record object.
func (*Record) Archive ¶ added in v1.11.0
Archive reads and saves the archive content to the database.
Click to show internal directories.
Click to hide internal directories.