Documentation ¶ Index ¶ Variables func CreateToken(userId uint64) (string, error) type Token func ParseToken(tokenString string) (Token, error) func (t *Token) IsExpired() (bool, error) func (t *Token) UserId() (uint64, error) Constants ¶ This section is empty. Variables ¶ View Source var RevokedTokens = make(map[string]bool) Functions ¶ func CreateToken ¶ func CreateToken(userId uint64) (string, error) CreateToken return jwt token Types ¶ type Token ¶ type Token struct { *jwt.Token } func ParseToken ¶ func ParseToken(tokenString string) (Token, error) func (*Token) IsExpired ¶ func (t *Token) IsExpired() (bool, error) func (*Token) UserId ¶ func (t *Token) UserId() (uint64, error) Source Files ¶ View all Source files revokedTokens.go token.go Click to show internal directories. Click to hide internal directories.