db

package
v0.0.0-...-95bc407 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeStatusLike

func ChangeStatusLike(Status string, idImage int) bool

func CheckStatusForImage

func CheckStatusForImage(idUsuario, UnsplashID string) (string, error)

func CheckToken

func CheckToken(token string) (int, int, error)

func ExistID

func ExistID(ID string, idUsuario int) (bool, int, string, error)

func InsertExistingImage

func InsertExistingImage(s3url, idUnsplash string, idUsuario int) bool

func InsertSMS

func InsertSMS(number, confirm string) bool

func InsertUser

func InsertUser(name, email, pass string) bool

func ListImg

func ListImg(idUsuario string) (*map[int]*Image, error)

func ListUsers

func ListUsers() (*map[int]*Users, error)

func Login

func Login(email, pass string) (string, string, error)

func MatchSMS

func MatchSMS(number, confirm string) bool

Types

type Image

type Image struct {
	IdImage    int
	S3url      string
	LikeTime   string
	UnsplashID string
}

type Users

type Users struct {
	IdUsuario int
	Name      string
	Email     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL