controller

package
v0.0.0-...-5d39348 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphQLHandler

func GraphQLHandler(c *gin.Context)

func LoginHandler

func LoginHandler(c *gin.Context)

func SignupHandler

func SignupHandler(c *gin.Context)

Types

type Credentials

type Credentials struct {
	Id       int    `json:"id" db:"id"`
	Password string `json:"password" db:"password"`
	Username string `json:"username" db:"username"`
}

type SignUpRequest

type SignUpRequest struct {
	Password string `json:"password" db:"password"`
	Username string `json:"username" db:"username"`
	Email    string `json:"email" db:"email"`
}

Jump to

Keyboard shortcuts

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