helper

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAccessToken

func CheckAccessToken(c *web.Context, secretKey, accessToken, uuid string) (jwtClaims *jwtx.JwtClaims, ok bool)

func CheckApp

func CheckApp(c *web.Context, err error, active bool, checkSecret CheckSecretFunc, code int) (ok bool)

func CheckStaff

func CheckStaff(c *web.Context, err error, active, departure bool, checkPassword CheckPasswordFunc, code int) (ok bool)

func CompareSecrets

func CompareSecrets(secret, reqAppSecret string) (ok bool)

Types

type CheckPasswordFunc

type CheckPasswordFunc func() bool

type CheckSecretFunc

type CheckSecretFunc func() bool

Jump to

Keyboard shortcuts

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