routes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *gin.Context)

func Data

func Data(c *gin.Context)

func DataByKey

func DataByKey(c *gin.Context)

func DeleteData

func DeleteData(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func Health added in v0.2.0

func Health(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func SetData

func SetData(c *gin.Context)

func SetupRoutes

func SetupRoutes() *gin.Engine

func UpdateAccount

func UpdateAccount(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

Types

type AuthorizedBodyConfig

type AuthorizedBodyConfig struct {
	Body    string
	Token   string
	Handler func(*httptest.ResponseRecorder)
}

type AuthorizedConfig

type AuthorizedConfig struct {
	Token   string
	Handler func(*httptest.ResponseRecorder)
}

type UnauthorizedBodyConfig

type UnauthorizedBodyConfig struct {
	Body    string
	Handler func(*httptest.ResponseRecorder)
}

Jump to

Keyboard shortcuts

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