Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientDetails ¶
type ClientDetailsModel ¶
type ClientDetailsModel struct { }
func NewClientDetailsModel ¶
func NewClientDetailsModel() *ClientDetailsModel
func (*ClientDetailsModel) CreateClientDetails ¶
func (p *ClientDetailsModel) CreateClientDetails(clientDetails *ClientDetails) error
func (*ClientDetailsModel) GetClientDetailsByClientId ¶
func (p *ClientDetailsModel) GetClientDetailsByClientId(clientId string) (*ClientDetails, error)
type OAuth2Details ¶
type OAuth2Details struct { Client *ClientDetails User *UserDetails }
type OAuth2Token ¶
type OAuth2Token struct { // 刷新令牌 RefreshToken *OAuth2Token // 令牌类型 TokenType string // 令牌 TokenValue string // 过期时间 ExpiresTime *time.Time }
func (*OAuth2Token) IsExpired ¶
func (oauth2Token *OAuth2Token) IsExpired() bool
Click to show internal directories.
Click to hide internal directories.