# Functions
HTTPServer is the constructor of the HTTP server.
NewContext returns a new instance of Context.
NewGzipHandler is an HTTP handler used to compress responses if supported by the client.
NewStats returns an instance of the stats counter.
# Constants
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
# Variables
ErrTemplatesNotFound is returned cannot be loaded.
# Structs
Context represents the context of a request.
DefaultEngine is the default algorithm used for mirror selection.
HTTP represents an instance of the HTTP webserver.
JSONRenderer is used to render JSON formatted details about the current request.
MirrorListRenderer is used to render the mirrorlist page using the HTML templates.
MirrorStats contains the stats of a given mirror.
MirrorStatsPage contains the values needed to generate the mirrorstats page.
RedirectRenderer is a basic renderer that redirects the user to the first mirror in the list.
Stats is the internal structure for the download stats.
StatsFileNow is the structure containing the latest stats of a file.
StatsFilePeriod is the structure containing the stats for the given period.
SyncOffset contains the time offset between the mirror and the local repository.
Templates is a struct embedding instances of the precompiled templates.
# Type aliases
RequestType defines the type of the request.
SecureOption is the type that defines TLS requirements.