Documentation
¶
Overview ¶
Package model provides a database model for the Defacto2 website.
Index ¶
- Constants
- Variables
- func Count(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func CountPlatform(ctx context.Context, exec boil.ContextExecutor, tag tags.Tag) (int64, error)
- func CountSection(ctx context.Context, exec boil.ContextExecutor, tag tags.Tag) (int64, error)
- func CountTags(ctx context.Context, exec boil.ContextExecutor, section, platform tags.Tag) (int64, error)
- func Counts(ctx context.Context, exec boil.ContextExecutor) (total, public, waiting int64, err error)
- func DeleteOne(ctx context.Context, exec boil.ContextExecutor, key int64) error
- func ExistDemozoo(ctx context.Context, exec boil.ContextExecutor, prodID int) (bool, error)
- func ExistHash(ctx context.Context, exec boil.ContextExecutor, hexHash string) (bool, error)
- func ExistPouet(ctx context.Context, exec boil.ContextExecutor, prodID int) (bool, error)
- func ExistSHA(ctx context.Context, exec boil.ContextExecutor, sha384 []byte) (bool, error)
- func ExistUUID(ctx context.Context, exec boil.ContextExecutor, uuid string) (bool, error)
- func InsertDemozoo(ctx context.Context, exec boil.ContextExecutor, prodID int) (key int64, unid string, err error)
- func InsertPouet(ctx context.Context, exec boil.ContextExecutor, prodID int) (key int64, unid string, err error)
- func InsertUpload(ctx context.Context, exec boil.ContextExecutor, values url.Values, ...) (key int64, unid uuid.UUID, err error)
- func JsDosBinary(f *models.File) (string, error)
- func JsDosCommand(f *models.File) (string, error)
- func JsDosConfig(f *models.File) ([]byte, error)
- func NewV7() (time.Time, uuid.UUID)
- func One(ctx context.Context, exec boil.ContextExecutor, withDeleted bool, key int) (*models.File, error)
- func OneByHash(ctx context.Context, exec boil.ContextExecutor, hexHash string) (string, error)
- func OneByUUID(ctx context.Context, exec boil.ContextExecutor, withDeleted bool, uid string) (*models.File, error)
- func OneDemozoo(ctx context.Context, exec boil.ContextExecutor, prodID int64) (deleted bool, key int64, err error)
- func OneEditByKey(ctx context.Context, exec boil.ContextExecutor, obfsKey string) (*models.File, error)
- func OneFile(ctx context.Context, exec boil.ContextExecutor, key int64) (*models.File, error)
- func OneFileByKey(ctx context.Context, exec boil.ContextExecutor, obfsKey string) (*models.File, error)
- func OneFn(ctx context.Context, exec boil.ContextExecutor, sanity, prodID int64, ...) (deleted bool, key int64, err error)
- func OnePouet(ctx context.Context, exec boil.ContextExecutor, prodID int64) (deleted bool, key int64, err error)
- func OnlyApproval(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func OnlyDescriptions(ctx context.Context, sl *slog.Logger, exec boil.ContextExecutor, ...) (models.FileSlice, error)
- func OnlyFilenames(ctx context.Context, exec boil.ContextExecutor, terms []string) (models.FileSlice, error)
- func OnlyHidden(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func OnlyMagicErrs(ctx context.Context, exec boil.ContextExecutor, binaryData bool) (models.FileSlice, error)
- func OnlyTexts(ctx context.Context, exec boil.ContextExecutor) (models.FileSlice, error)
- func OnlyUniqueIDs(ctx context.Context, exec boil.ContextExecutor, ids []int, uuids ...uuid.UUID) (models.FileSlice, error)
- func ReleasersWhere(ctx context.Context, exec boil.ContextExecutor, releasers string) (models.FileSlice, error)
- func SiteAd(releaser, section null.String) null.String
- func SumPlatform(ctx context.Context, exec boil.ContextExecutor, tag tags.Tag) (int64, error)
- func SumReleaser(ctx context.Context, exec boil.ContextExecutor, name string) (int64, error)
- func SumSection(ctx context.Context, exec boil.ContextExecutor, tag tags.Tag) (int64, error)
- func SummCols() []string
- func UUID(ctx context.Context, exec boil.ContextExecutor) (models.FileSlice, error)
- func UpdateEmulateCPU(ctx context.Context, exec boil.ContextExecutor, key int64, val string) error
- func UpdateEmulateMachine(ctx context.Context, exec boil.ContextExecutor, key int64, val string) error
- func UpdateEmulateRunProgram(ctx context.Context, exec boil.ContextExecutor, key int64, val string) error
- func UpdateEmulateSfx(ctx context.Context, exec boil.ContextExecutor, key int64, val string) error
- func UpdateMagic(ctx context.Context, exec boil.ContextExecutor, key int64, magic string) error
- func UpdateOnline(ctx context.Context, exec boil.ContextExecutor, status bool, key int64) error
- func UpdateReleasers(ctx context.Context, exec boil.ContextExecutor, key int64, ...) error
- func UpdateYMD(ctx context.Context, exec boil.ContextExecutor, key int64, y, m, d null.Int16) error
- func UpdateYMDS(ctx context.Context, exec boil.ContextExecutor, key int64, y, m, d string) error
- func ValidD(d int16) null.Int16
- func ValidDateIssue(y, m, d string) (null.Int16, null.Int16, null.Int16)
- func ValidFilename(s string) null.String
- func ValidFilesize(size string) (null.Int64, error)
- func ValidIntegrity(integrity string) null.String
- func ValidLastMod(lastmod string) null.Time
- func ValidM(m int16) null.Int16
- func ValidMagic(mediatype string) null.String
- func ValidPlatform(platform string) null.String
- func ValidReleasers(s1, s2 string) (null.String, null.String)
- func ValidSceners(s string) null.String
- func ValidSection(section string) null.String
- func ValidString(s string) null.String
- func ValidTitle(s string) null.String
- func ValidY(y int16) null.Int16
- func ValidYouTube(s string) null.String
- func Validate(art *models.File) error
- type Advert
- type Announcement
- type Ansi
- type AnsiBBS
- type AnsiBrand
- type AnsiFTP
- type AnsiNfo
- type AnsiPack
- type Artifacts
- func (obj *Artifacts) ByKey(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (obj *Artifacts) ByNewest(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (obj *Artifacts) ByOldest(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (obj *Artifacts) ByUpdated(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (obj *Artifacts) OnlyUnwanted(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (obj *Artifacts) Public(ctx context.Context, exec boil.ContextExecutor) error
- type BBS
- type BBSImage
- type BBSText
- type BBStro
- func (q *BBStro) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (q *BBStro) Sensenstahl(ctx context.Context, exec boil.ContextExecutor, offset, limit int) (models.FileSlice, error)
- func (q *BBStro) Stat(ctx context.Context, exec boil.ContextExecutor) error
- func (q *BBStro) String() string
- func (q *BBStro) Values() (int, int, int, int)
- type BoolFrom
- type By
- type Classification
- type Console
- type Creators
- type Database
- type Demoscene
- type Drama
- type Exist
- type FTP
- type FileUpload
- type HTML
- type Hack
- type HowTo
- type Image
- type ImagePack
- type Installer
- type Int64From
- type Intro
- type IntroMsDos
- type IntroWindows
- type Java
- type JobAdvert
- type Key
- type Links
- type Linux
- type Lookup
- type Macos
- type Magazine
- type MsDos
- type MsDosPack
- type Music
- type NewsArticle
- type Nfo
- type NfoTool
- type OrderBy
- type PCBoard
- type PCBoardPPE
- type PCBoardText
- type PDF
- type Proof
- type Releaser
- type ReleaserName
- type ReleaserNames
- func (r *ReleaserNames) Distinct(ctx context.Context, exec boil.ContextExecutor) error
- func (r *ReleaserNames) DistinctBBS(ctx context.Context, exec boil.ContextExecutor) error
- func (r *ReleaserNames) DistinctGroups(ctx context.Context, exec boil.ContextExecutor) error
- func (r *ReleaserNames) DistinctMagazines(ctx context.Context, exec boil.ContextExecutor) error
- func (r *ReleaserNames) Slugs() Set
- type Releasers
- func (obj *Releasers) FTP(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Releasers) Initialism(ctx context.Context, exec boil.ContextExecutor, limit int, names ...string) error
- func (obj *Releasers) Magazine(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Releasers) MagazineAZ(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Releasers) Similar(ctx context.Context, exec boil.ContextExecutor, limit int, names ...string) error
- func (obj *Releasers) SimilarMagazine(ctx context.Context, exec boil.ContextExecutor, limit int, names ...string) error
- func (obj *Releasers) Slugs()
- func (obj *Releasers) String() string
- type Restrict
- type Scener
- type Sceners
- func (obj *Sceners) Artist(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Sceners) Coder(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Sceners) Distinct(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Sceners) Musician(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Sceners) Sort() []string
- func (obj *Sceners) Writer(ctx context.Context, exec boil.ContextExecutor) error
- type Script
- type Set
- type Standards
- type StatFunc
- type StatModel
- type StringFrom
- type Summary
- func (obj *Summary) ByDescription(ctx context.Context, exec boil.ContextExecutor, terms []string) error
- func (obj *Summary) ByFilename(ctx context.Context, exec boil.ContextExecutor, terms []string) error
- func (obj *Summary) ByForApproval(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Summary) ByHidden(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Summary) ByMatch(ctx context.Context, exec boil.ContextExecutor, uri string) error
- func (obj *Summary) ByPublic(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Summary) ByReleaser(ctx context.Context, exec boil.ContextExecutor, uri string) error
- func (obj *Summary) ByScener(ctx context.Context, exec boil.ContextExecutor, scener string) error
- func (obj *Summary) ByUnwanted(ctx context.Context, exec boil.ContextExecutor) error
- func (obj *Summary) Update(count, bytes, yearMin, yearMax int)
- type Takedown
- type Text
- type TextAmiga
- type TextApple2
- type TextAtariST
- type TextPack
- type Tool
- type TrialCrackme
- type UUIDVers
- type Video
- type Windows
- type WindowsPack
Constants ¶
const ( ShortLimit = 100 // ShortLimit is the maximum length of a short string. LongFilename = 255 // LongFilename is the maximum length of a filename. )
const ClauseNoSoftDel = "deletedat IS NULL"
ClauseNoSoftDel is the clause to exclude soft deleted records.
const ClauseOldDate = "date_issued_year ASC NULLS LAST, " +
"date_issued_month ASC NULLS LAST, " +
"date_issued_day ASC NULLS LAST"
ClauseOldDate orders the records by oldest date first.
const EpochYear = 1980
EpochYear is the epoch year for the website, for example, using it as year zero for the era of MS-DOS.
const From = "files"
From is the name of the table containing records of files.
const Maximum = 998
Maximum number of files to return per query.
const PageSet = 10 // PageSet is the default number of results when limit/page arguments are offered.
Variables ¶
var ( ErrModel = errors.New("model: file model is not provided") ErrMethod = errors.New("model: method value is invalid") ErrName = errors.New("model: name value is empty") ErrSearch = errors.New("model: search term(s) is invalid") ErrSha384 = errors.New("model: sha384 value is invalid") ErrTime = errors.New("model: time value is invalid") ErrURI = errors.New("model: uri value is invalid") ErrUUID = errors.New("model: could not create uuid") ErrBadDDay = errors.New("model: invalid day") ErrBadDMonth = errors.New("model: invalid month") ErrBadDYear = errors.New("model: invalid year") ErrBadID = errors.New("model: artifact key id cannot be found") ErrBadIDInt = errors.New("model: artifact key id is zero or negative") ErrBadOS = errors.New("model: operating system or platform tag is invalid") ErrBadTag = errors.New("model: category or section tag is invalid") ErrBadFname = errors.New("model: filename is missing") ErrBadRel = errors.New("model: cannot update releasers, for must be set before by") ErrBadMag = errors.New("model: magazine requires an issue number, volume, or a title") ErrBadYT = errors.New("model: invalid youtube id") ErrBadCPU = errors.New("model: emulate-cpu value must be one of auto, 8086, 386, 486") ErrBadMachine = errors.New("model: emulate-machine value must be one of auto, " + "cga, ega, vga, tandy, nolfb, et3000, paradise, et4000, oldvbe") ErrBadSFX = errors.New("model: emulate-sfx value must be one of " + "auto, covox, sb1, sb16, gus, pcspeaker, none") )
Functions ¶
func CountPlatform ¶ added in v1.14.0
CountPlatform counts the files that match the platform tag.
func CountSection ¶ added in v1.14.0
CountSection counts the files that match the section tag.
func CountTags ¶ added in v1.14.0
func CountTags(ctx context.Context, exec boil.ContextExecutor, section, platform tags.Tag) (int64, error)
CountTags counts the files that match the named category and platform.
func Counts ¶ added in v0.8.0
func Counts(ctx context.Context, exec boil.ContextExecutor) (total, public, waiting int64, err error)
Counts returns the total numbers of artifact records.
- Returned are the total number of artifacts, both public and private.
- The number of public artifacts.
- The number of artifacts waiting for approval.
func DeleteOne ¶ added in v0.8.0
DeleteOne retrieves a single file record from the database using the record key. This function can return records that have been marked as deleted.
func ExistDemozoo ¶ added in v1.14.0
ExistDemozoo returns true if a file record links to a Demozoo production ID. This function will also return true for records that have been marked as deleted.
func ExistHash ¶ added in v1.14.0
ExistHash returns true if a file record uses the hexadecimal representation of the SHA-384 hash.
func ExistPouet ¶ added in v1.14.0
ExistPouet returns true if a file record links to a Pouet production ID. This function will also return true for records that have been marked as deleted.
func ExistUUID ¶ added in v1.14.0
ExistUUID returns true if a file record uses the Universal Unique ID.
func InsertDemozoo ¶
func InsertDemozoo(ctx context.Context, exec boil.ContextExecutor, prodID int) (key int64, unid string, err error)
InsertDemozoo inserts a new file record into the database using a Demozoo production ID. This will not check if the Demozoo production ID already exists in the database. When successful the function will return the new record ID.
func InsertPouet ¶
func InsertPouet(ctx context.Context, exec boil.ContextExecutor, prodID int) (key int64, unid string, err error)
InsertPouet inserts a new file record into the database using a Pouet production ID. This will not check if the Pouet production ID already exists in the database. When successful the function will return the new record ID.
func InsertUpload ¶
func InsertUpload(ctx context.Context, exec boil.ContextExecutor, values url.Values, prefix string) ( key int64, unid uuid.UUID, err error, )
InsertUpload inserts a new file record into the database using a URL values map. This will not check if the file already exists in the database. Invalid values will be ignored, but will not prevent the record from being inserted. When successful the function will return the new record ID key and the UUID.
func JsDosBinary ¶
JsDosBinary returns the program executable to run in the js-dos emulator. If the filename is a .com or .exe then it will return the filename. Otherwise, it will attempt to find the most likely executable in the archive.
func JsDosCommand ¶ added in v0.10.0
JsDosCommand returns the program executable or commands to run in the js-dos emulator. If the dosee_run_program is set then it is the preferred executable. If the filename is a .com or .exe then it will return the filename. Otherwise, it will attempt to find the most likely executable in the archive.
func JsDosConfig ¶
JsDosConfig creates a js-dos .ini configuration for the emulator.
func One ¶
func One(ctx context.Context, exec boil.ContextExecutor, withDeleted bool, key int) (*models.File, error)
One retrieves a single file record from the database using the record key. This function can return records that have been marked as deleted.
func OneByHash ¶ added in v1.14.0
OneByHash returns the obfuscated ID of the file record that uses the hexadecimal representation of the SHA-384 hash.
func OneByUUID ¶
func OneByUUID(ctx context.Context, exec boil.ContextExecutor, withDeleted bool, uid string) (*models.File, error)
OneByUUID returns the record associated with the UUID key. Generally this method of retrieval is less efficient than using the numeric, record key ID.
func OneDemozoo ¶
func OneDemozoo(ctx context.Context, exec boil.ContextExecutor, prodID int64) ( deleted bool, key int64, err error, )
OneDemozoo retrieves the ID or key of a single file record from the database using a Demozoo production ID. This function will also return records that have been marked as deleted and flag those with the boolean. If the record is not found then the function will return an ID of 0 but without an error.
func OneEditByKey ¶
func OneEditByKey(ctx context.Context, exec boil.ContextExecutor, obfsKey string) (*models.File, error)
OneEditByKey retrieves a single file record from the database using the obfuscated record key. This function will also return records that have been marked as deleted.
func OneFile ¶
OneFile retrieves a single file record from the database using the record key. This function will also return records that have been marked as deleted.
func OneFileByKey ¶
func OneFileByKey(ctx context.Context, exec boil.ContextExecutor, obfsKey string) (*models.File, error)
OneFileByKey retrieves a single file record from the database using the obfuscated record key.
func OnePouet ¶
func OnePouet(ctx context.Context, exec boil.ContextExecutor, prodID int64) ( deleted bool, key int64, err error, )
OnePouet retrieves the ID or key of a single file record from the database using a Pouet production ID. This function will also return records that have been marked as deleted and flag those with the boolean. If the record is not found then the function will return an ID of 0 but without an error.
func OnlyApproval ¶ added in v1.14.0
func OnlyApproval(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
OnlyApproval returns all of the file records that are waiting to be marked for approval.
This should not bind values to Artifacts struct as it can fail with a scan error due to unapproved files missing bytes and minyear/maxyear values.
func OnlyDescriptions ¶ added in v1.14.0
func OnlyDescriptions(ctx context.Context, sl *slog.Logger, exec boil.ContextExecutor, terms []string) ( models.FileSlice, error, )
OnlyDescriptions returns a list of files that match the search terms. The search terms are matched against the record_title column. The results are ordered by the filename column in ascending order.
func OnlyFilenames ¶ added in v1.14.0
func OnlyFilenames(ctx context.Context, exec boil.ContextExecutor, terms []string) ( models.FileSlice, error, )
OnlyFilenames returns a list of files that match the search terms. The search terms are matched against the filename column. The results are ordered by the filename column in ascending order.
func OnlyHidden ¶ added in v1.14.0
func OnlyHidden(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
OnlyHidden returns all of the file records that are marked as hidden using soft delete.
func OnlyMagicErrs ¶ added in v1.14.0
func OnlyMagicErrs(ctx context.Context, exec boil.ContextExecutor, binaryData bool) ( models.FileSlice, error, )
OnlyMagicErrs returns all of the file records using legacy magic numbers that require replacements. The binary data bool will also replace magic strings that are set to "Binary data".
func OnlyTexts ¶ added in v1.14.0
OnlyTexts returns all of the file records that are text based, both text or textamiga.
func OnlyUniqueIDs ¶ added in v1.14.0
func OnlyUniqueIDs( ctx context.Context, exec boil.ContextExecutor, ids []int, uuids ...uuid.UUID) ( models.FileSlice, error, )
OnlyUniqueIDs returns a list of files that match the lists of records with id or uuid.
func ReleasersWhere ¶ added in v1.14.0
func ReleasersWhere(ctx context.Context, exec boil.ContextExecutor, releasers string) (models.FileSlice, error)
ReleasersWhere gets the records that match the named releaser. If the provided name is invalid, no results but no errors are returned.
func SiteAd ¶ added in v1.7.12
SiteAd will replace a tags.Nfo section to either tags.BBS or tags.Ftp if the releaser is a known BBS board or FTP site. Otherwise the supplied section is returned.
func SumPlatform ¶ added in v1.14.0
SumPlatform sums the file byte sizes of the files that match the platform tag.
func SumReleaser ¶ added in v1.14.0
SumReleaser sums the byte file sizes for all the files that match the named release or group.
func SumSection ¶ added in v1.14.0
SumSection sums the file byte sizes of the files that match the section tag.
func SummCols ¶ added in v1.14.0
func SummCols() []string
SummCols returns a read-only slice reference to the Summary columns.
func UpdateEmulateCPU ¶ added in v0.10.0
func UpdateEmulateMachine ¶ added in v0.10.0
func UpdateEmulateRunProgram ¶ added in v0.10.0
func UpdateEmulateSfx ¶ added in v0.10.0
func UpdateMagic ¶ added in v0.10.0
UpdateMagic updates the file magictype (magic number) column with the magic value provided.
func UpdateOnline ¶
UpdateOnline updates the record to be online and public.
func UpdateReleasers ¶
func UpdateReleasers(ctx context.Context, exec boil.ContextExecutor, key int64, relFor, relBy string) error
UpdateReleasers updates the releasers values with relFor and relBy. It always overwrites the existing releases for the artifact id. If relFor or relBy are left empty, they will delete the existing releasers.
When providing single releasers, it must be placed in relFor. Using relBy, while leaving relFor blank will return an error.
The table columns updated are GroupBrandFor and GroupBrandBy.
func UpdateYMD ¶
UpdateYMD updates the date issued year, month and day columns with the int values provided.
- y int16 represents a year
- m int16 represents a numeric month
- d int16 represents a numeric day of the month
func UpdateYMDS ¶ added in v1.14.0
UpdateYMDS updates the date issued year, month and day columns with the string values provided.
- y is a year
- m is a numeric month, 1 - 12
- d is a numeric day of the month, 1 - 31
func ValidDateIssue ¶
ValidDateIssue returns a valid year, month and day or a null value.
func ValidFilename ¶
ValidFilename returns a valid filename or a null value. The filename is trimmed and shortened to the long filename limit.
func ValidFilesize ¶
ValidFilesize returns a valid file size or an error. The file size is parsed as an unsigned integer. An error is returned if the string cannot be parsed as an integer.
func ValidIntegrity ¶
ValidIntegrity confirms the integrity as a valid SHA-384 hexadecimal hash or returns a null value.
func ValidLastMod ¶
ValidLastMod returns a valid last modified time or a null value. The lastmod time is parsed as a Unix time in milliseconds. An error is returned if the string cannot be parsed as an integer. The lastmod time is validated to be within the current year and the epoch year of 1980.
func ValidMagic ¶
ValidMagic returns a valid media type or a null value. It is validated using the mime package. The media type is trimmed and validated using the mime package.
func ValidPlatform ¶
ValidPlatform returns a valid platform or a null value.
func ValidReleasers ¶
ValidReleasers returns two valid releaser group strings or null values.
func ValidSceners ¶
ValidSceners returns a valid sceners string or a null value.
func ValidSection ¶
ValidSection returns a valid section or a null value.
func ValidString ¶
ValidString returns a valid string or a null value.
func ValidTitle ¶
ValidTitle returns a valid title or a null value. The title is trimmed and shortened to the short limit.
func ValidYouTube ¶
ValidYouTube returns true if the string is a valid YouTube video ID. An error is only returned if the regular expression match cannot compile.
Types ¶
type Advert ¶
type Advert struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Advert is the model for the for sale.
type Announcement ¶
type Announcement struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Announcement is the model for the public and community announcements.
func (*Announcement) List ¶
func (q *Announcement) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*Announcement) Stat ¶
func (q *Announcement) Stat(ctx context.Context, exec boil.ContextExecutor) error
type Ansi ¶
type Ansi struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Ansi is the model for the ANSI formatted text and art files.
type AnsiBBS ¶
type AnsiBBS struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
AnsiBBS is the model for the BBS advertisements created in ANSI text.
type AnsiBrand ¶
type AnsiBrand struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
AnsiBrand is the model for the brand logos created in ANSI text.
type AnsiFTP ¶
type AnsiFTP struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
AnsiFTP is the model for the FTP advertisements created in ANSI text.
type AnsiNfo ¶
type AnsiNfo struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
AnsiNfo is the model for the NFO files created in ANSI text.
type AnsiPack ¶
type AnsiPack struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
AnsiPack is the model for the ANSI file packs.
type Artifacts ¶
type Artifacts struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
UpdatedAt time.Time `boil:"-"`
}
Artifacts statistics.
func (*Artifacts) ByKey ¶
func (obj *Artifacts) ByKey(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
ByKey returns the public files reversed ordered, numeric key ID column.
func (*Artifacts) ByNewest ¶
func (obj *Artifacts) ByNewest(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
ByNewest returns all of the file records sorted by the date issued.
func (*Artifacts) ByOldest ¶
func (obj *Artifacts) ByOldest(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
ByOldest returns all of the file records sorted by the date issued.
func (*Artifacts) ByUpdated ¶
func (obj *Artifacts) ByUpdated(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
ByUpdated returns all of the file records sorted by the date updated.
type BBS ¶
type BBS struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
BBS is the model for the Bulletin Board System files.
type BBSImage ¶
type BBSImage struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
BBSImage is the model for the Bulletin Board System image files.
type BBSText ¶
type BBSText struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
BBSText is the model for the Bulletin Board System text files.
type BBStro ¶
type BBStro struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
BBStro is the model for the Bulletin Board System intro files.
func (*BBStro) Sensenstahl ¶ added in v1.5.2
type BoolFrom ¶ added in v1.14.0
type BoolFrom int
BoolFrom is a type for the bool columns that can be updated.
type Classification ¶ added in v1.14.0
func (Classification) Update ¶ added in v1.14.0
func (cl Classification) Update(ctx context.Context, exec boil.ContextExecutor) error
Update the classification of a file in the database. It takes an ID, platform, and tag as parameters and returns an error if any. Both platform and tag must be valid values.
type Console ¶ added in v1.13.0
type Console struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Console is the model for console releases.
type Database ¶
type Database struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Database is the model for the database releases.
type Demoscene ¶
type Demoscene struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Demoscene is the model for the demoscene releases.
type Drama ¶
type Drama struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Drama is the model for community drama.
type FTP ¶
type FTP struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
FTP is the model for the FTP files.
type FileUpload ¶ added in v0.10.0
type FileUpload struct {
ID int64
LastMod time.Time
Filename string
Integrity string
MagicNumber string
Content string
Filesize int64
}
FileUpload contains the values needed to update an existing file record after a new file has been uploaded to the server.
func (FileUpload) Update ¶ added in v0.10.0
func (fu FileUpload) Update(ctx context.Context, exec boil.ContextExecutor) error
Update the file record with the values provided in FileUpload. The id is the database id key of the record.
type HTML ¶
type HTML struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
HTML is the model for the HTML and markdown files.
type Hack ¶
type Hack struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Hack is the model for the game hacks.
type HowTo ¶
type HowTo struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
HowTo is the model for the guides and how-to texts.
type Image ¶
type Image struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Image is the model for the images.
type ImagePack ¶
type ImagePack struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
ImagePack is the model for the image file packs.
type Installer ¶
type Installer struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Installer contain statistics for releases that could be considered installers.
type Int64From ¶ added in v1.14.0
type Int64From int
Int64From is a type for the int64 columns that can be updated.
func (Int64From) Update ¶ added in v1.14.0
func (col Int64From) Update(ctx context.Context, exec boil.ContextExecutor, key int64, val string) error
Update the column int64 from value with val. The int64From columns are table columns that can either be null, empty, or have an int64 value. The values for both demozoo and pouet are validated to be within a sane range and a zero value will set their column's to null.
type Intro ¶
type Intro struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Intro contain statistics for releases that could be considered intros or cracktros.
type IntroMsDos ¶
type IntroMsDos struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
IntroMsDos contain statistics for releases that could be considered DOS intros or cracktros.
func (*IntroMsDos) List ¶
func (q *IntroMsDos) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*IntroMsDos) Stat ¶
func (q *IntroMsDos) Stat(ctx context.Context, exec boil.ContextExecutor) error
func (*IntroMsDos) String ¶ added in v1.12.0
func (q *IntroMsDos) String() string
type IntroWindows ¶
type IntroWindows struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
IntroWindows contain statistics for releases that could be considered Windows intros or cracktros.
func (*IntroWindows) List ¶
func (q *IntroWindows) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*IntroWindows) Stat ¶
func (q *IntroWindows) Stat(ctx context.Context, exec boil.ContextExecutor) error
func (*IntroWindows) String ¶ added in v1.12.0
func (q *IntroWindows) String() string
type Java ¶
type Java struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Java is the model for the Java operating system.
type JobAdvert ¶
type JobAdvert struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
JobAdvert is the model for group job advertisements.
type Key ¶ added in v1.14.0
type Key string
const ( KeyPCBoard Key = "pcboard" KeyPCBoardPPE Key = "pcboard-ppe" KeyPCBoardText Key = "pcboard-text" KeyTextAmiga Key = "text-amiga" KeyTextApple2 Key = "text-apple2" KeyTextAtariST Key = "text-atari-st" KeyPDF Key = "pdf" KeyHTML Key = "html" KeyNewsArticle Key = "news-article" KeyStandards Key = "standards" KeyAnnouncement Key = "announcement" KeyJobAdvert Key = "job-advert" KeyTrialCrackme Key = "trial-crackme" KeyHack Key = "hack" KeyTool Key = "tool" KeyTakedown Key = "takedown" KeyDrama Key = "drama" KeyAdvert Key = "advert" KeyRestrict Key = "restrict" KeyHowTo Key = "how-to" KeyNFOTool Key = "nfo-tool" KeyImage Key = "image" KeyMusic Key = "music" KeyVideo Key = "video" KeyMSDOS Key = "msdos" KeyWindows Key = "windows" KeyMacOS Key = "macos" KeyLinux Key = "linux" KeyJava Key = "java" KeyScript Key = "script" KeyDatabase Key = "database" KeyMSDOSPack Key = "msdos-pack" KeyWindowsPack Key = "windows-pack" KeyImagePack Key = "image-pack" KeyTextPack Key = "text-pack" KeyText Key = "text" KeyMagazine Key = "magazine" KeyFTP Key = "ftp" KeyBBSText Key = "bbs-text" KeyBBSImage Key = "bbs-image" KeyBBStro Key = "bbstro" KeyBBS Key = "bbs" KeyANSINFO Key = "ansi-nfo" KeyANSIPack Key = "ansi-pack" KeyANSIFTP Key = "ansi-ftp" KeyANSIBBS Key = "ansi-bbs" KeyANSIBrand Key = "ansi-brand" KeyANSI Key = "ansi" KeyProof Key = "proof" KeyNFO Key = "nfo" KeyDemoscene Key = "demoscene" KeyInstaller Key = "installer" KeyIntro Key = "intro" KeyIntroMSDOS Key = "intro-msdos" KeyIntroWindows Key = "intro-windows" KeyConsole Key = "console" )
func Keys ¶ added in v1.14.0
func Keys() []Key
Keys is intended for testing boilerplate and returns the keys used in matches.
type Links ¶ added in v1.14.0
type Linux ¶
type Linux struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Linux is the model for the Linux operating system.
type Macos ¶
type Macos struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Macos is the model for the Macintosh operating system.
type Magazine ¶
type Magazine struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Magazine is the model for the magazine files.
type MsDos ¶
type MsDos struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
MsDos is the model for the MS-DOS operating system.
type MsDosPack ¶
type MsDosPack struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
MsDosPack is the model for the DOS file packs.
type Music ¶
type Music struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Music is the model for the music.
type NewsArticle ¶
type NewsArticle struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
NewsArticle is the model for mainstream news articles.
func (*NewsArticle) List ¶
func (q *NewsArticle) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*NewsArticle) Stat ¶
func (q *NewsArticle) Stat(ctx context.Context, exec boil.ContextExecutor) error
type Nfo ¶
type Nfo struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Nfo is the model for the NFO files.
type NfoTool ¶
type NfoTool struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
NfoTool is the model for the NFO tools.
type OrderBy ¶
type OrderBy uint
OrderBy is the sorting order for ALL the releasers.
func (OrderBy) BBS ¶ added in v1.14.0
BBS gets the unique BBS site names and their total file count and file sizes.
func (OrderBy) Limit ¶ added in v1.14.0
func (order OrderBy) Limit(ctx context.Context, exec boil.ContextExecutor, obj *Releasers, limit, page int) error
Limit gets the unique releaser names and their total file count and file sizes. When reorder is true the results are ordered by the total file counts.
type PCBoard ¶ added in v1.10.4
type PCBoard struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
PCBoard is the model for PCBoard platform which can include text files and applications.
type PCBoardPPE ¶ added in v1.10.4
type PCBoardPPE struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
PCBoardPPE is the model for PCBoard applications.
func (*PCBoardPPE) List ¶ added in v1.10.4
func (q *PCBoardPPE) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*PCBoardPPE) Stat ¶ added in v1.10.4
func (q *PCBoardPPE) Stat(ctx context.Context, exec boil.ContextExecutor) error
type PCBoardText ¶ added in v1.10.4
type PCBoardText struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
PCBoardText is the model for PCBoard applications.
func (*PCBoardText) List ¶ added in v1.10.4
func (q *PCBoardText) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*PCBoardText) Stat ¶ added in v1.10.4
func (q *PCBoardText) Stat(ctx context.Context, exec boil.ContextExecutor) error
type PDF ¶
type PDF struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
PDF is the model for the documents in PDF format.
type Proof ¶
type Proof struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Proof is the model for the file proofs.
type Releaser ¶
type Releaser struct {
Name string `boil:"releaser"` // Name of the releaser.
URI string `` // URI slug for the releaser, with no boiler bind.
Bytes int `boil:"size_total"` // Bytes are the total size of all the files under this releaser.
Count int `boil:"count_sum"` // Count is the total number of files under this releaser.
// Year is used for optional sorting and is the earliest year the releaser was active.
Year null.Int `boil:"min_year"`
}
Releaser is a collective, group or individual, that releases files.
type ReleaserName ¶
type ReleaserName struct {
Name string `boil:"releaser"`
}
ReleaserName is a releaser name.
func (*ReleaserName) String ¶ added in v1.14.0
func (r *ReleaserName) String() string
type ReleaserNames ¶
type ReleaserNames []ReleaserName
ReleaserNames is a distinct data list of releasers.
func (*ReleaserNames) Distinct ¶
func (r *ReleaserNames) Distinct(ctx context.Context, exec boil.ContextExecutor) error
Distinct gets the unique releaser names.
func (*ReleaserNames) DistinctBBS ¶ added in v1.10.5
func (r *ReleaserNames) DistinctBBS(ctx context.Context, exec boil.ContextExecutor) error
DistinctBBS gets the unique releaser names that are BBS sites.
func (*ReleaserNames) DistinctGroups ¶ added in v0.8.0
func (r *ReleaserNames) DistinctGroups(ctx context.Context, exec boil.ContextExecutor) error
DistinctGroups gets the unique releaser names that are groups.
func (*ReleaserNames) DistinctMagazines ¶ added in v1.10.5
func (r *ReleaserNames) DistinctMagazines(ctx context.Context, exec boil.ContextExecutor) error
DistinctMagazines gets the unique releaser names that are magazines.
func (*ReleaserNames) Slugs ¶ added in v1.14.0
func (r *ReleaserNames) Slugs() Set
Slugs returns a map of distinct releaser URLs for lookups that use little memory and are fast.
Usage:
var names model.ReleaserNames
_ = names.DistinctGroups(ctx, db)
slugs := names.Slugs()
if slugs.Has("someone") {}
type Releasers ¶
type Releasers []*struct {
Unique Releaser `boil:",bind"` // Unique releaser.
}
Releasers is a collection of releasers.
func (*Releasers) FTP ¶
FTP gets the unique FTP site names and their total file count and file sizes.
func (*Releasers) Initialism ¶ added in v1.5.3
func (obj *Releasers) Initialism(ctx context.Context, exec boil.ContextExecutor, limit int, names ...string) error
Initialism finds the unique releaser names that match the named strings. The results are ordered by the total file counts. The required limit is the maximum number of results to return or defaults to 10.
func (*Releasers) Magazine ¶
Magazine gets the unique magazine titles and their total issue count and file sizes.
func (*Releasers) MagazineAZ ¶
MagazineAZ gets the unique magazine titles and their total issue count and file sizes.
func (*Releasers) Similar ¶
func (obj *Releasers) Similar(ctx context.Context, exec boil.ContextExecutor, limit int, names ...string) error
Similar finds the unique releaser names that are similar to the named strings. The results are ordered by the total file counts. The required limit is the maximum number of results to return or defaults to 10.
func (*Releasers) SimilarMagazine ¶
func (obj *Releasers) SimilarMagazine( ctx context.Context, exec boil.ContextExecutor, limit int, names ...string, ) error
SimilarMagazine finds the unique releaser names that are similar to the named strings. The results are ordered by the total file counts. The required limit is the maximum number of results to return or defaults to 10.
type Restrict ¶
type Restrict struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
type Sceners ¶
type Sceners []*struct {
Name Scener `boil:"scener"`
}
Sceners is a collection of sceners.
func (*Sceners) Musician ¶
Musician gets a list of sceners who have been credited for music or audio.
type Script ¶
type Script struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Script is the model for the script and interpreted languages.
type Set ¶ added in v1.14.0
type Set map[string]struct{}
Set is a zero-byte memory map used to store and reference string values.
type Standards ¶ added in v1.14.0
type Standards struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Standards is the model for community standards.
type StringFrom ¶ added in v1.14.0
type StringFrom int
StringFrom is a type for the string columns that can be updated.
const ( Colors16 StringFrom = iota // WebID16colors column value Comment // Comment column value CreatorAudio // CreditAudio column value CreatorIll // CreditIllustration column value CreatorProg // CreditProgram column with value CreatorText // CreditText column with value Filename // Filename column with value GitHub // WebIDGithub column with value Integrity // FileIntegrityStrong column with value Platform // Platform column value with value Magic // FileMagicType value with value Relations // ListRelations column with value Section // Section column with value Sites // ListLinks column with value Title // RecordTitle column with value VirusTotal // FileSecurityAlertURL with value YouTube // WebIDYoutube column with value ZipContent // FileZipContent column with value )
func (StringFrom) Update ¶ added in v1.14.0
func (sf StringFrom) Update(ctx context.Context, exec boil.ContextExecutor, key int64, val string) error
Update updates the StringFrom value with val. The StringFrom columns are table column cells that can either be null, empty, or have a string value.
type Summary ¶
type Summary struct {
SumBytes sql.NullInt64 `boil:"size_total"` // Sum total of the file sizes.
SumCount sql.NullInt64 `boil:"count_total"` // Sum total count of the files.
MinYear sql.NullInt16 `boil:"min_year"` // Minimum or earliest year of the files.
MaxYear sql.NullInt16 `boil:"max_year"` // Maximum or latest year of the files.
}
Summary counts the total number files, file sizes and the earliest and latest years.
func (*Summary) ByDescription ¶
func (obj *Summary) ByDescription(ctx context.Context, exec boil.ContextExecutor, terms []string) error
ByDescription saves the summary statistics for the file description search.
func (*Summary) ByFilename ¶
func (obj *Summary) ByFilename(ctx context.Context, exec boil.ContextExecutor, terms []string) error
ByFilename saves the summary statistics for the filename search.
func (*Summary) ByForApproval ¶
ByForApproval returns the summary statistics for files that require approval.
func (*Summary) ByHidden ¶
ByHidden returns the summary statistics for files that have been deleted.
func (*Summary) ByReleaser ¶
ByReleaser returns the summary statistics for the named releaser. The uri is case insensitive and must be the URI slug of the releaser or an error could be returned.
func (*Summary) ByUnwanted ¶
ByUnwanted returns the summary statistics for files that have been marked as unwanted.
type Takedown ¶
type Takedown struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Takedown is the model for the bust and take downs.
type Text ¶
type Text struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Text is the model for the text files.
type TextAmiga ¶
type TextAmiga struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
TextAmiga is the model for the text files for the Amiga operating system.
type TextApple2 ¶
type TextApple2 struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
TextApple2 is the model for the text files about the Apple II microcomputer.
func (*TextApple2) List ¶
func (q *TextApple2) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*TextApple2) Stat ¶
func (q *TextApple2) Stat(ctx context.Context, exec boil.ContextExecutor) error
type TextAtariST ¶
type TextAtariST struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
TextAtariST is the model for the text files about the Atari ST microcomputer.
func (*TextAtariST) List ¶
func (q *TextAtariST) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*TextAtariST) Stat ¶
func (q *TextAtariST) Stat(ctx context.Context, exec boil.ContextExecutor) error
type TextPack ¶
type TextPack struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
TextPack is the model for the text file packs.
type Tool ¶
type Tool struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Tool is the model for the computer tools.
type TrialCrackme ¶
type TrialCrackme struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
TrialCrackme is the model for group job trial "crackme" releases.
func (*TrialCrackme) List ¶
func (q *TrialCrackme) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*TrialCrackme) Stat ¶
func (q *TrialCrackme) Stat(ctx context.Context, exec boil.ContextExecutor) error
type UUIDVers ¶ added in v1.12.0
type UUIDVers struct {
V1 int
V2 int
V3 int
V4 int
V5 int
V6 int
V7 int
V8 int
Count int // Count is the total number of UUIDs parsed.
Error int // Error are the UUIDs parsed that returned an error.
Unknown int // Unknown are the UUIDs parsed that returned an out of range version.
}
UUIDVers contains the UUID version usage statistics.
type Video ¶
type Video struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Video is the model for the videos.
type Windows ¶
type Windows struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
Windows is the model for the Windows operating system.
type WindowsPack ¶
type WindowsPack struct {
Bytes int `boil:"size_total"`
Count int `boil:"count_total"`
MinYear int `boil:"min_year"`
MaxYear int `boil:"max_year"`
}
WindowsPack is the model for the Windows file packs.
func (*WindowsPack) List ¶
func (q *WindowsPack) List(ctx context.Context, exec boil.ContextExecutor, offset, limit int) ( models.FileSlice, error, )
func (*WindowsPack) Stat ¶
func (q *WindowsPack) Stat(ctx context.Context, exec boil.ContextExecutor) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fix contains functions for repairing the database data.
|
Package fix contains functions for repairing the database data. |
|
Package html3 is a sub-package of the model package that should only be used by the html3 handler.
|
Package html3 is a sub-package of the model package that should only be used by the html3 handler. |
|
Package querymod provides the query mod expressions for the file database.
|
Package querymod provides the query mod expressions for the file database. |