Documentation ¶
Index ¶
- Variables
- func CORS() gin.HandlerFunc
- func Firewall(listType string, ipList string) gin.HandlerFunc
- func GetJWT(id uint64, email string, tokenType string) (string, error)
- func JWT() gin.HandlerFunc
- func Pongo2() gin.HandlerFunc
- func RefreshJWT() gin.HandlerFunc
- func SentryCapture(sentryDsn string) gin.HandlerFunc
- type JWTPayload
- type MyCustomClaims
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessKey []byte
AccessKey ...
View Source
var AccessKeyTTL int
AccessKeyTTL ...
View Source
var AuthID uint64
AuthID - Access details
View Source
var Email string
Email - Access details
View Source
var RefreshKey []byte
RefreshKey ...
View Source
var RefreshKeyTTL int
RefreshKeyTTL ...
Functions ¶
func Firewall ¶ added in v1.4.0
func Firewall(listType string, ipList string) gin.HandlerFunc
Firewall ...
func Pongo2 ¶ added in v1.4.0
func Pongo2() gin.HandlerFunc
Pongo2 - uses the Pongo2 template library https://github.com/flosch/pongo2 to render templates
func SentryCapture ¶ added in v1.2.4
func SentryCapture(sentryDsn string) gin.HandlerFunc
SentryCapture ...
Types ¶
type JWTPayload ¶ added in v1.2.5
type JWTPayload struct { AccessJWT string `json:"AccessJWT"` RefreshJWT string `json:"RefreshJWT"` }
JWTPayload ...
type MyCustomClaims ¶
type MyCustomClaims struct { ID uint64 `json:"Id"` Email string `json:"Email"` jwt.StandardClaims }
MyCustomClaims ...
Click to show internal directories.
Click to hide internal directories.