package
3.13.2+incompatible
Repository: https://github.com/datamanager-go/datamanagerserver.git
Documentation: pkg.go.dev

# Functions

DirExists returns true if dir exists.
FilesByName finds a file by ID.
FindFileByID finds a file by ID.
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 config Returns 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

Preview types.
Preview types.
Permissions.
Permissions.
SessionTokenLength length of session token.
Preview types.
Preview types.
Permissions.

# Variables

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

# Structs

Config config for the server.
File a file uploaded to the db.
Group a group in DB.
LoginSession session for loggedin user.
Namespace a namespace for files.
PreviewTemplate template struct for preview.
Role roles for user.
SessionCache cache sessions in ram.
Tag a filetag.
User user in db.

# Type aliases

Permission permission for roles.
PreviewType type of preview.