Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTGuard ¶
type JWTGuard interface { CheckToken(tokenString string) (userID uint64, err error) SignToken(userID uint64, userName string) (string, error) }
JWTGuard will check visitor's identify and report to business handlers
func NewJWTGuard ¶
NewJWTGuard JWTGuard.
func NewStubJWtGuard ¶
func NewStubJWtGuard() JWTGuard
NewStubJWtGuard implements JWTGuard as test stub
Click to show internal directories.
Click to hide internal directories.