api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Work = new(workApi)

Functions

func Authenticator

func Authenticator(r *ghttp.Request) (interface{}, error)

返回值interface{} 就是 JWT_Payload对应的值,即: interface{} = r.Get("JWT_Payload")

func PayloadFunc

func PayloadFunc(data interface{}) jwt.MapClaims

func RefreshResponse

func RefreshResponse(*ghttp.Request, int, string, time.Time)

Types

This section is empty.

Jump to

Keyboard shortcuts

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