Documentation ¶
Index ¶
- Variables
- func CheckConnection() int
- func CheckUserExist(email string) (models.User, bool, string)
- func CreateTweet(t models.CreateTweet) (string, bool, error)
- func DeleteRelation(t models.Relation) (bool, error)
- func DeleteTweet(ID string, UserID string) error
- func EncryptPassword(password string) (string, error)
- func FindProfile(id string) (models.User, error)
- func GetAllUsers(ID string, page int64, search string, userType string) ([]*models.User, bool)
- func GetRelation(t models.Relation) (bool, error)
- func GetTweets(ID string, page int64) ([]*models.GetTwets, bool)
- func GetTweetsFollowers(ID string, page int) ([]models.TweetsFollowers, bool)
- func InsertIntoDatabase(u models.User) (string, bool, error)
- func InsertRelation(r models.Relation) (bool, error)
- func Login(email string, password string) (models.User, bool)
- func UpdateProfile(u models.User, ID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConnection = connection()
Functions ¶
func CheckConnection ¶
func CheckConnection() int
func CreateTweet ¶
func CreateTweet(t models.CreateTweet) (string, bool, error)
func DeleteTweet ¶
func EncryptPassword ¶
func GetAllUsers ¶
func GetTweetsFollowers ¶
func GetTweetsFollowers(ID string, page int) ([]models.TweetsFollowers, bool)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.