Documentation
¶
Index ¶
- Variables
- func AddPost(post models.AddPost) (string, bool, error)
- func AddProduct(product models.Product) (string, bool, error)
- func AddRegistry(u models.Usuario) (string, bool, error)
- func AddRelationship(t models.Relationship) (bool, error)
- func CheckConnection() bool
- func Connect() error
- func DeletePost(id string, userId string) error
- func DeleteRelationship(t models.Relationship) (bool, error)
- func EncriptPassword(pass string) (string, error)
- func GetFriendsPosts(id string, page int64) ([]models.GetFriendsPosts, bool)
- func GetPosts(id string, pag int64) ([]*models.GetPosts, bool)
- func GetProducts() ([]*models.GetProducts, bool)
- func GetProfile(id string) (models.Usuario, error)
- func GetRelationship(t models.Relationship) bool
- func GetUsers(id string, page int64, search string, typeUser string) ([]*models.Usuario, bool)
- func Login(email string, password string) (models.Usuario, bool)
- func UpdateUser(u models.Usuario, id string) (models.Usuario, bool, error)
- func UserExist(email string) (models.Usuario, bool, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DatabaseName string
View Source
var MongoCN *mongo.Client
Functions ¶
func AddRelationship ¶
func AddRelationship(t models.Relationship) (bool, error)
func CheckConnection ¶
func CheckConnection() bool
func DeletePost ¶
func DeleteRelationship ¶
func DeleteRelationship(t models.Relationship) (bool, error)
func EncriptPassword ¶
func GetFriendsPosts ¶
func GetFriendsPosts(id string, page int64) ([]models.GetFriendsPosts, bool)
func GetProducts ¶
func GetProducts() ([]*models.GetProducts, bool)
func GetRelationship ¶
func GetRelationship(t models.Relationship) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.