Documentation ¶
Index ¶
- Variables
- func GenCallback(callback, token string) (string, error)
- func GetAccessClaims(c *gin.Context) *jwtClaims.AccessToken
- func GetAppCode(c *gin.Context) string
- func GetUserInfo(c *gin.Context) *jwtClaims.UserToken
- func IsIntranet(ip string) bool
- func MustTcpListen(addr string) net.Listener
- func NewMfa(uid uint) (*otp.Key, error)
- func RunGrpcSrv(tcpListen net.Listener, srv *grpc.Server)
- func RunHttpSrv(srv *http.Server)
- func ShouldBindReused(c *gin.Context, obj any) error
- func VerifyMfa(code, secret string) (bool, error)
- type UintSlice
Constants ¶
This section is empty.
Variables ¶
View Source
var Http *tool.Http
Functions ¶
func GenCallback ¶
func GetAccessClaims ¶ added in v1.17.2
func GetAccessClaims(c *gin.Context) *jwtClaims.AccessToken
func GetAppCode ¶ added in v1.17.2
func MustTcpListen ¶ added in v1.17.19
func RunHttpSrv ¶ added in v1.17.19
Types ¶
Click to show internal directories.
Click to hide internal directories.