Documentation ¶
Index ¶
- Variables
- func BorroTweet(twt models.Tweet, ID string) (bool, error)
- func BuscoPerfil(ID string) (models.Usuario, error)
- func ChequeoConnection() int
- func ChequeoYaExisteUsuario(email string) (models.Usuario, bool, string)
- func ConectarBD() *mongo.Client
- func EncriptarPassword(pass string) (string, error)
- func InsertoRegistro(u models.Usuario) (string, bool, error)
- func InsertoTweet(t models.GraboTweet) (string, bool, error)
- func IntentoLogin(email string, password string) (models.Usuario, bool)
- func LeoTweets(ID string, pagina int64) ([]*models.DevuelvoTweets, bool)
- func ModificoRegistro(u models.Usuario, ID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DBName = "microblogging"
View Source
var MongoCN = ConectarBD()
MongoCN es el objeto de conexión a la base de datos
Functions ¶
func BorroTweet ¶
ModificoRegistro permite modificar el perfil del tweet
func BuscoPerfil ¶
BuscoPerfil - busca un perfil en la BD
func ChequeoYaExisteUsuario ¶
ChequeoYaExisteUsuario recibe un email de parámetro y chequea si ya está en la db
func ConectarBD ¶
ConectarBD es la función que me permite conectar a la base de datos
func EncriptarPassword ¶
EncriptarPassword es la rutina que me permite encriptar la password recibida
func InsertoRegistro ¶
InsertoRegistro es la parada final con la db para insertarlos datos del usuario
func InsertoTweet ¶
func InsertoTweet(t models.GraboTweet) (string, bool, error)
InsertoTweet graba el tweet en la BD
func IntentoLogin ¶
IntentoLogin realiza el chequeo de login a la BD
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.