controllers

package
v0.0.0-...-48f0708 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminLogin

func AdminLogin(c *gin.Context)

AdminLogin ...

func AdminLogout

func AdminLogout(c *gin.Context)

AdminLogout ...

func CheckSession

func CheckSession(c *gin.Context)

CheckSession ...

func CreateOneAdmin

func CreateOneAdmin(c *gin.Context)

CreateOneAdmin ...

func CreateTodo

func CreateTodo(c *gin.Context)

CreateTodo ...

func Login

func Login(c *gin.Context)

Login : handle user's login

func Logout

func Logout(c *gin.Context)

Logout : handle user's log out

func RefreshToken

func RefreshToken(c *gin.Context)

RefreshToken ...

func Signup

func Signup(c *gin.Context)

Signup : handle signing up

func UserRetrieve

func UserRetrieve(c *gin.Context)

UserRetrieve : get user's data

Types

type Todo

type Todo struct {
	UserID string `json:"user_id"`
	Title  string `json:"title"`
}

Todo ...

Jump to

Keyboard shortcuts

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