# Functions
DisableMirror disables the given mirror.
EnableMirror enables the given mirror.
MarkMirrorDown marks the given mirror as down.
MarkMirrorUp marks the given mirror as up.
NewCache constructs a new instance of Cache.
NewLRUCache return a new instance of the cache.
SetMirrorEnabled marks a mirror as enabled or disabled.
SetMirrorState sets the state of a mirror to up or down with an optional reason.
# Structs
ByComputedScore is used to sort a slice of Mirror by their score.
ByExcludeReason is used to sort a slice of Mirror alphabetically by their exclude reason.
ByRank is used to sort a slice of Mirror by their rank.
Cache implements a local caching mechanism of type LRU for content available in the redis database that is automatically invalidated if the object is updated in Redis.
Item contains the key and value that goes into the cache.
LRUCache is the internal structure of the cache.
Mirror is the structure representing all the information about a mirror.
Results is the resulting struct of a request and is used by the renderers to generate the final page.
Time is a structure holding a time.Time object.
# Interfaces
Value that go into LRUCache need to satisfy this interface.