# Functions
IsNoSkylinksNeedPinning returns true when the given error indicates that there are no more skylinks that need to be pinned by the current server.
New creates a new database connection.
NewCustomDB creates a new database connection to a database with a custom name.
SkylinkFromString converts a string to a Skylink.
# Constants
GiB gigabyte.
KiB kilobyte.
MaxNumFailedAttempts defines the maximum number of failed attempts at which we would still attempt to pin a skylink.
MiB megabyte.
MongoDefaultTimeout is our default timeout for database operations.
TiB terabyte.
# Variables
ErrCtxFailedToConnect is the context we add to an error when we fail to connect to the db.
ErrInvalidSkylink is returned when a client call supplies an invalid skylink hash.
ErrNoSkylinksLocked is returned when we try to lock underpinned skylinks for pinning but we fail to do so.
ErrNoUnderpinnedSkylinks is returned when all skylinks in the database are either sufficiently pinned or pinned by the local server.
ErrServerLoadNotFound is returned when we don't have a record for the server's load.
ErrSkylinkExists is returned when we try to create a skylink that already exists.
ErrSkylinkNotExist is returned when we try to get a skylink that doesn't exist.
LockDuration defines the duration of a database lock.
# Structs
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