# Functions

DirExists return true if dir exists.
FindFile finds a file.
FindFiles finds file.
FindGroup finds a group.
FindGroups find group in db.
FindNamespace find namespace in DB.
FindTag finds a tag.
FindTags find namespace in DB.
FindUserNamespaces get all namespaces for user.
GetDefaultConfig gets the default config path.
GetGroup returns or creates a group.
GetNamespaceFromString return namespace from string.
GetPublicFile returns a file which is public.
GetTag returns or creates a tag.
GetUserFromSession return user from session.
GroupArrToStringArr return string arr from group.
GroupsFromStringArr return tag array from string array.
InitConfig inits the configReturns true if system should exit.
IsDefaultPreview return true if pt is default previewtype.
IsImagePreview return true if pt is image previewtype.
IsTextPreview return true if pt is text previewtype.
IsVideoPreview return true if pt is video previewtype.
NewSession create new login session.
PreviewTypeFromMime get Type to preview from mime.
ShredderFile shreddres a file.
TagArrToStringArr return string arr from tags.
TagsFromStringArr return tag array from string array.

# Constants

ActionNotAllowed error from server.
BatchSizeTooLarge batch is too large.
Preview types.
Available upload types.
HeaderChecksum files checksum.
HeaderContentLength request content length.
HeaderContentType contenttype of response.
HeaderEncryption encryption header.
HeaderFileID fileid header.
HeaderFileName filename header.
HeaderRequest request content.
HeaderStatus headername for status in response.
HeaderStatusMessage headername for status in response.
Preview types.
InvalidCallbackURL token is not valid.
InvalidTokenError token is not valid.
MultipleSourceNameErr err name already exists.
Permissions.
NotFoundError error from server.
Permissions.
ResponseError if there was an error.
ResponseSuccess if the response is successful.
ServerError error from server.
SessionTokenLength length of session token.
Preview types.
Available upload types.
UserIsInvalidErr err if user is invalid.
Preview types.
Permissions.
WrongInputFormatError wrong user input.
WrongIntegerFormat integer is probably no integer.
WrongLength error from server.

# Variables

ErrorUserAlreadyExists error if user exists.
PreviewMimes mimes assigned to preview.

# Structs

BulkPublishResponse response for publishing a file.
Config config for the server.
CountResponse response containing a count of changed items.
CredentialsRequest request containing credentials.
File a file uploaded to the db.
FileAttributes attributes for a file.
FileListRequest contains file info (and a file).
FileRequest contains data to update a file.
FileResponseItem file item for file response.
FileUpdateItem lists changes to a file.
Group a group in DB.
IDsResponse response containing a list of ids.
ListFileResponse response for list files.
LoginResponse response for login.
LoginSession session for loggedin user.
Namespace a namespace for files.
Namespaceinfo info for namespace.
NamespaceRequest namespace action request.
OptionalRequetsParameter optional request parameter.
PingRequest ping request.
PreviewTemplate template struct for preview.
PublishResponse response for publishing a file.
Role roles for user.
StringResponse response containing only one string.
StringSliceResponse response containing only one string slice.
Tag a filetag.
UpdateAttributeRequest contains data to update a tag.
UploadRequest contains file info (and a file).
UploadResponse response for uploading file.
User user in db.
UserAttributeDataResponse response for userattribute data.
UserAttributesRequest request for getting namespaces and groups.

# Type aliases

Permission permission for roles.
PreviewType type of preview.
ResponseStatus the status of response.
UploadType type of upload.