Documentation
¶
Index ¶
- func AddUsedNonce(nonce string)
- func AuthorizationConfig() model.AuthorizationKey
- func AuthorizationMiddleware(token string) gin.HandlerFunc
- func GenerateJWTToken() (string, error)
- func GetCloudflare(ctx *gin.Context) (*model.CloudflareErrorResponse, *model.CloudflareResponse)
- func IsNonceUsed(nonce string) bool
- func ParseCloudflareResponse(jsonData []byte) (bool, error)
- func ValidateJWTToken(tokenString string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUsedNonce ¶
func AddUsedNonce(nonce string)
func AuthorizationConfig ¶
func AuthorizationConfig() model.AuthorizationKey
func AuthorizationMiddleware ¶
func AuthorizationMiddleware(token string) gin.HandlerFunc
func GenerateJWTToken ¶
func GetCloudflare ¶
func GetCloudflare(ctx *gin.Context) (*model.CloudflareErrorResponse, *model.CloudflareResponse)
func IsNonceUsed ¶
func ParseCloudflareResponse ¶
func ValidateJWTToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.