middleware

package
v0.0.0-...-9e59f10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentUser models.User
)

CurrentUser global variable for authenticated user

Functions

func MethodValidator

func MethodValidator() gin.HandlerFunc

MethodValidator for handling request method

func ReqValidate

func ReqValidate(c *gin.Context, query interface{}, bindType binding.Binding) (interface{}, error)

ReqValidate for handle request with params/json validator

func RequiresUserAuth

func RequiresUserAuth(c *gin.Context)

RequiresUserAuth middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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