controllers

package
v0.0.0-...-450141a Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateName

func CreateName(c *gin.Context)

CreateName creates a new name in the database of type NameType

func DeleteName

func DeleteName(c *gin.Context)

DeleteName deletes name off database by id

func GetID

func GetID(c *gin.Context)

GetID reads a name by id

func GetMetaphoneMatch

func GetMetaphoneMatch(c *gin.Context)

GetMetaphoneMatch reads a name by metaphone

func GetName

func GetName(c *gin.Context)

GetName reads a name by name

func Login

func Login(c *gin.Context)

Login verifies email and password and sets a JWT token as a cookie for authentication

func Signup

func Signup(c *gin.Context)

Signup creates a new user and saves it to the database.

func UpdateName

func UpdateName(c *gin.Context)

UpdateName updates name by id

Types

This section is empty.

Jump to

Keyboard shortcuts

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