package
0.0.0-20201102160538-59f2e6311f88
Repository: https://github.com/anavas09/gotwitter.git
Documentation: pkg.go.dev
# Functions
AddUser : Insert a new document (user) in the database.
CheckDBConnection check if the database connection still up.
CheckIfUserExist : Check if the user (document) its in the database.
CheckRelation : Check if two user got a relationship.
DeleteTweetFromDB : Delete a specific tweet from the database.
EditUser : Edit user data in the database.
EncryptPassword : Encrypt the user password.
FindProfile : Find a profile in the database.
InsertRelation : Insert a relation model to the database.
InsertTweet : Save tweet in the database.
ReadAllUsers : Got users from database.
ReadTweetsFollowers : Read tweets from followers.
ReadTweetsFromDB : Read tweets from an user.
RemoveRelation : Remove a relation model from the database.
TryLogin : Try to login sending the data to the database.
# Variables
MongoCN : Client to handling the database.