Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticator

func Authenticator(c *gin.Context) (interface{}, error)

Authenticator handler

func GetUser

func GetUser(id primitive.ObjectID) (*models.User, error)

GetUser by ID

func HandleGetProfile

func HandleGetProfile(c *gin.Context)

func HandleRegister

func HandleRegister(c *gin.Context)

func RetrieveByEmail

func RetrieveByEmail(email string) (*models.User, error)

RetrieveByEmail finds user by email

Types

This section is empty.

Source Files