Documentation ¶
Index ¶
- Variables
- func CheckEngine()
- func GetRefreshToken(userID string) (refreshToken string, err error)
- func HasRefreshToken(userId string) (has bool)
- func Insert(userID string, refreshToken string) (err error)
- func SetRefreshToken(userID string, refreshToken string) (err error)
- func SyncTables()
- func Update(userID string, refreshToken string) (err error)
- type UserTokens
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckEngine ¶
func CheckEngine()
func GetRefreshToken ¶
func HasRefreshToken ¶
func SetRefreshToken ¶
func SyncTables ¶
func SyncTables()
Types ¶
type UserTokens ¶
type UserTokens struct { UserID string `xorm:"pk not null 'user_id'"` RefreshToken string `xorm:"not null 'refresh_token'"` }
func (UserTokens) TableName ¶
func (UserTokens) TableName() string
Click to show internal directories.
Click to hide internal directories.