middleware

package
v0.0.0-...-03f5a44 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeJWT

func AuthorizeJWT() gin.HandlerFunc

JWT token'ı doğrulamak için middleware

func CreateToken

func CreateToken(username string) (string, error)

JWT token oluşturmak için

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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