Documentation ¶
Index ¶
- type GiteeUser
- func (g *GiteeUser) GetAPP() vobj.OAuthAPP
- func (g *GiteeUser) GetAvatar() string
- func (g *GiteeUser) GetEmail() string
- func (g *GiteeUser) GetNickname() string
- func (g *GiteeUser) GetOAuthID() uint32
- func (g *GiteeUser) GetRemark() string
- func (g *GiteeUser) GetUsername() string
- func (g *GiteeUser) String() string
- type GithubUser
- func (g *GithubUser) GetAPP() vobj.OAuthAPP
- func (g *GithubUser) GetAvatar() string
- func (g *GithubUser) GetEmail() string
- func (g *GithubUser) GetNickname() string
- func (g *GithubUser) GetOAuthID() uint32
- func (g *GithubUser) GetRemark() string
- func (g *GithubUser) GetUsername() string
- func (g *GithubUser) String() string
- type IOAuthUser
- type OauthLoginParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GiteeUser ¶
type GiteeUser struct { AvatarUrl string `json:"avatar_url"` Bio string `json:"bio"` Blog string `json:"blog"` CreatedAt string `json:"created_at"` Email string `json:"email"` EventsUrl string `json:"events_url"` Followers uint32 `json:"followers"` FollowersUrl string `json:"followers_url"` Following uint32 `json:"following"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` HtmlUrl string `json:"html_url"` Id uint32 `json:"id"` Login string `json:"login"` Name string `json:"name"` OrganizationsUrl string `json:"organizations_url"` PublicGists uint32 `json:"public_gists"` PublicRepos uint32 `json:"public_repos"` ReceivedEventsUrl string `json:"received_events_url"` Remark string `json:"remark"` ReposUrl string `json:"repos_url"` Stared uint32 `json:"stared"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` Watched uint32 `json:"watched"` Weibo string `json:"weibo"` }
func (*GiteeUser) GetNickname ¶
func (*GiteeUser) GetOAuthID ¶
func (*GiteeUser) GetUsername ¶
type GithubUser ¶
type GithubUser struct { AvatarUrl string `json:"avatar_url"` Bio string `json:"bio"` Blog string `json:"blog"` Company string `json:"company"` CreatedAt string `json:"created_at"` Email string `json:"email"` EventsUrl string `json:"events_url"` Followers uint32 `json:"followers"` FollowersUrl string `json:"followers_url"` Following uint32 `json:"following"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` Hireable any `json:"hireable"` HtmlUrl string `json:"html_url"` Id uint32 `json:"id"` Location string `json:"location"` Login string `json:"login"` Name string `json:"name"` NodeId string `json:"node_id"` NotificationEmail any `json:"notification_email"` OrganizationsUrl string `json:"organizations_url"` PublicGists uint32 `json:"public_gists"` PublicRepos uint32 `json:"public_repos"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` TwitterUsername any `json:"twitter_username"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
func (*GithubUser) GetAPP ¶
func (g *GithubUser) GetAPP() vobj.OAuthAPP
func (*GithubUser) GetAvatar ¶
func (g *GithubUser) GetAvatar() string
func (*GithubUser) GetEmail ¶
func (g *GithubUser) GetEmail() string
func (*GithubUser) GetNickname ¶
func (g *GithubUser) GetNickname() string
func (*GithubUser) GetOAuthID ¶
func (g *GithubUser) GetOAuthID() uint32
func (*GithubUser) GetRemark ¶
func (g *GithubUser) GetRemark() string
func (*GithubUser) GetUsername ¶
func (g *GithubUser) GetUsername() string
type IOAuthUser ¶
type IOAuthUser interface { fmt.Stringer GetOAuthID() uint32 GetEmail() string GetRemark() string GetUsername() string GetNickname() string GetAvatar() string GetAPP() vobj.OAuthAPP }
func NewOAuthRowData ¶
func NewOAuthRowData(app vobj.OAuthAPP, row string) (IOAuthUser, error)
type OauthLoginParams ¶
type OauthLoginParams struct { Code string `json:"code"` Email string `json:"email"` OAuthID uint32 `json:"oAuthID"` Token string `json:"token"` }
func (*OauthLoginParams) GetTokenKey ¶ added in v1.1.0
func (o *OauthLoginParams) GetTokenKey() string
GetTokenKey 返回token的key
func (*OauthLoginParams) VerifyToken ¶ added in v1.1.0
func (o *OauthLoginParams) VerifyToken(ctx context.Context, cacher cache.ISimpleCacher) error
VerifyToken 校验token是否过期
func (*OauthLoginParams) WaitVerifyToken ¶ added in v1.1.0
func (o *OauthLoginParams) WaitVerifyToken(ctx context.Context, cacher cache.ISimpleCacher) error
WaitVerifyToken 等待token验证
Click to show internal directories.
Click to hide internal directories.