Documentation ¶
Index ¶
Constants ¶
View Source
const ( SecretKey = "sillyhattest" TokenKey = "SILLY-HAT-TOKEN" ContextKey = "SILLY-HAT-TOKEN" )
Variables ¶
View Source
var JWTClient *jwtutils.JWT
Functions ¶
func InitialAPI ¶
func InitialAPI(port int)
func SetupRouter ¶
Types ¶
type Auth ¶
func (*Auth) GetAuthForDebug ¶
func (*Auth) GetContextKey ¶
func (*Auth) GetJWTClient ¶
func (*Auth) GetTokenKey ¶
Click to show internal directories.
Click to hide internal directories.