package
1.5.21
Repository: https://github.com/defacto2/server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CheckDir runs checks against the named directory, including whether it exists, is a directory, and contains a minimum number of files.
DownloadDir, on startup check the download directory for any invalid or unknown files.
Format returns a human readable description of the named configuration identifier.
ImageDirs, on startup check the image directories for any invalid or unknown files.
IsHTML3 returns true if the route is /html3.
RecordCount returns the number of records in the database.
RemoveDir, check the directory for invalid names.
RemoveDownload, check the download files for invalid names and extensions.
RemoveImage, check the image files for invalid names and extensions.
RenameDownload, rename the download file if the basename uses an invalid coldfusion uuid.
SanityTmpDir is used to print the temporary directory and its disk usage.
StaticOriginal returns the path to the image directory.
StaticThumb returns the path to the thumbnail directory.
StringErr sends the error and code as a string.
Validate returns an error if the HTTP or TLS port is invalid.

# Constants

ARC archives.
ARJ archives.
ConfigDir is the subdirectory for the home user ".config".
Directory permissions.
AbsDownload means the absolute download asset directory.
HTTPPort is the default port number for the unencrypted HTTP server.
LHA and LZH archives.
AbsLog means the absolute log directory.
MinimumFiles is the minimum number of unique filenames expected in an asset subdirectory.
PortMax is the highest valid port number.
PortSys is the lowest valid port number that does not require system access.
AbsPreview means the absolute preview assets directory.
SessionHours is the default number of hours for the session cookie to remain active.
AbsThumbnail means the absolute thumbnanil assets directory.
ZIP and PKZip archives.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config options for the Defacto2 server using the [caarlos0/env] package.
Configuration is a struct that holds the configuration options.

# Type aliases

Repair is a type of archive for the re-archive and recompress methods.