package
0.6.6
Repository: https://github.com/cygy/ginamite.git
Documentation: pkg.go.dev

# Functions

CreateAllCollections : creates the collections.
CreateAllDefaultDocuments : populates the database with the initial documents.
CreateAllIndexes : checks the indexes of the collections.
CreateCollections : creates the collections.
CreateDefaultDocuments : populates the database with the initial documents.
CreateIndexes : creates the indexes of the collections.
DeleteExpiredTokens : delete the expired tokens.
DeleteUserByID : deletes an user and all its bound documents.
DisableUserByID : disables an user and all its bound documents.
EnableUserByID : enables an user and all its bound documents.
GetInactiveAccounts : returns the count of inactive accounts deleted.
GetNeverUsedAccounts : returns the count of unused accounts deleted (never logged in).
GetNotificationTargetsByUserAndType : gets the targets of a notification sent to an user.
IsEmailAddressValid : returns true if the email address is valid and messages can be sent it.
IsEmptyUser : returns true if the user has never done at least one action.
RemoveCollections : removes the collections.
RemoveDefaultDocuments : removes some unused documents from the database.
RemoveIndexes : removes indexes from the collections.
RemoveUnusedCollections : removes the unused collections.
RemoveUnusedDefaultDocuments : removes some unused documents from the database.
RemoveUnusedIndexes : removes some indexes from the collections.
SanitizeAccounts : maintenance function to update/delete the data from a deleted user.
SaveIPAddressDetails : save the IP address details.
UpdateAllDefaultDocuments : updates some default documents from the database.
UpdateDefaultDocuments : updates some default documents from the database.
UpdateUserSocialNetworksByID : updates the user's social networks to its bound documents.

# Structs

CollectionToCreate : struct representing a collection.
IndexToCreate : struct representing the index of a collection.
IndexToDelete : struct representing the index of a collection.