middleware

package
v0.0.0-...-d0d7a61 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(c *gin.Context) (interface{}, error)

Authenticate ...

func Payload

func Payload(data interface{}) jwt.MapClaims

Payload ...

Types

type Login

type Login struct {
	Email    string `form:"email" json:"Email" binding:"required"`
	Password string `form:"password" json:"Password"  binding:"required"`
}

Login ...

Jump to

Keyboard shortcuts

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