Documentation ¶
Index ¶
- Variables
- func GetClientById(clientId string) *model.OAuthClient
- func GetCodeInRedis(code string) (string, string, string)
- func GetToken(clientId string, un string) *model.OAuthToken
- func GetTokenByRefreshToken(clientId string, r_token string) *model.OAuthToken
- func GetTokenByToken(at string) *model.OAuthToken
- func RemoveCode(code string)
- func SaveCode(clientId string, code string, username string)
- func SaveToken(token *model.OAuthToken)
Constants ¶
This section is empty.
Variables ¶
View Source
var Cli = new(redis.Client)
View Source
var Conn *sql.DB
Functions ¶
func GetClientById ¶
func GetClientById(clientId string) *model.OAuthClient
func GetTokenByRefreshToken ¶
func GetTokenByRefreshToken(clientId string, r_token string) *model.OAuthToken
func GetTokenByToken ¶
func GetTokenByToken(at string) *model.OAuthToken
func RemoveCode ¶
func RemoveCode(code string)
func SaveToken ¶
func SaveToken(token *model.OAuthToken)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.