Documentation ¶ Index ¶ type Enter func (e Enter) AnalyzeToken(token, jwtKey string) (*UserClaim, error) func (e Enter) GenerateToken(id int64, username string, second int, jwtKey string) (string, error) type UserClaim Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Enter ¶ type Enter struct{} func (Enter) AnalyzeToken ¶ func (e Enter) AnalyzeToken(token, jwtKey string) (*UserClaim, error) func (Enter) GenerateToken ¶ func (e Enter) GenerateToken(id int64, username string, second int, jwtKey string) (string, error) type UserClaim ¶ type UserClaim struct { Id int64 Username string jwt.StandardClaims } Source Files ¶ View all Source files enter.gojwt.go Click to show internal directories. Click to hide internal directories.