# Functions
CheckPassword checks username and password combination.
CheckPasswordResetToken checks if the password reset token exists.
ClearCommits deletes all commits for a file except the current.
Close closes the connection.
Commit returns the commit record.
CommitList gets a summary of all commits for a file.
CreateUser inserts a new user into the users table.
DeleteFile deletes a users file.
DeleteTempFile deletes a users temp file.
DeleteUser deletes a user and their data.
File retrieves a file record.
FileData returns the files dotfile data structure.
FileFeed returns n of the most recently updated files.
FilesByUsername returns all of a users files.
ForkFile creates a copy of username/alias/hash for the user newUserID.
InitOrCommit uses the content in a temp file to initialize a file or create a new commit.
Logout sets the session to deleted.
NewFileTransaction loads file information into a file transaction.
NotFound returns whether err is wrapping a no rows error.
ResetPassword hashes and sets a new password to the user with the password reset token.
Rollback reverts a database transaction.
RotateCLIToken creates a new CLI token for the user.
SearchFiles looks for files by their alias or path.
SeedReservedUsernames sets usernames which are not allowed to be used.
Session finds a user with session.
SetFileToHash sets file to the commit at hash.
SetPasswordResetToken creates and saves a reset token for the user.
StageFile returns a file transaction loaded with a users temp file.
Start opens a connection a sqlite3 database.
TempFile finds a user's temp file.
UncompressCommit gets a commit and uncompresses its contents.
UncompressFile gets a file and uncompresses its current commit.
UpdateEmail updates a users email and sets email_confirmed to false.
UpdatePassword updates a users password.
UpdateTheme updates a users theme setting.
UpdateTimezone checks if the timezone is able to be loaded and updates the user record.
UserLogin checks a username / password.
UserLoginAPI checks a username and CLI token combination.
ValidateFileNotExists validates that no other file for user exists with alias or path.
ValidateUserExists throws a sql.ErrNoRows when the username does not exist.
# Constants
DefaultLimit is the default limit for paginated queries.
MaxLimit is the max limit for paginated queries.
Valid Values for UserTheme.
Valid Values for UserTheme.
# Variables
Connection is a global database connection.
# Structs
CommitRecord models the commits table.
CommitSummary summarizes a commit.
CommitView is used for an individual commit view.
FileContent implements file.Getter.
FileRecord models the files table.
FileSearchResult is the result of a file search.
FileSummary summarizes a file.
FileTransaction implements dotfile interfaces.
FileView contains a file record and its uncompressed content.
HTMLTable contains methods for generating HTML output from rows and columns.
PageControls maps url queries to query parameters.
ReservedUsernameRecord models the reserved_usernames table.
SessionRecord models the sessions table.
TempFileRecord models the temp_files table.
UserRecord models the user table.
UserSession is a model for joining the users and sessions tables.
# Interfaces
Executor is an interface for executing SQL.
# Type aliases
UserTheme is a users theme preference.