Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SocialMap = make(map[string]SocialConnector)
)
Functions ¶
func NewOauthService ¶
func NewOauthService()
Types ¶
type BasicUserInfo ¶
type SocialConnector ¶
type SocialGithub ¶
type SocialGithub struct {
// contains filtered or unexported fields
}
func (*SocialGithub) Type ¶
func (s *SocialGithub) Type() int
func (*SocialGithub) UserInfo ¶
func (s *SocialGithub) UserInfo(token *oauth2.Token, _ *url.URL) (*BasicUserInfo, error)
type SocialGoogle ¶
type SocialGoogle struct {
// contains filtered or unexported fields
}
func (*SocialGoogle) Type ¶
func (s *SocialGoogle) Type() int
func (*SocialGoogle) UserInfo ¶
func (s *SocialGoogle) UserInfo(token *oauth2.Token, _ *url.URL) (*BasicUserInfo, error)
type SocialTencent ¶
type SocialTencent struct {
// contains filtered or unexported fields
}
func (*SocialTencent) Type ¶
func (s *SocialTencent) Type() int
func (*SocialTencent) UserInfo ¶
func (s *SocialTencent) UserInfo(token *oauth2.Token, URL *url.URL) (*BasicUserInfo, error)
type SocialWeibo ¶
type SocialWeibo struct {
// contains filtered or unexported fields
}
func (*SocialWeibo) Type ¶
func (s *SocialWeibo) Type() int
func (*SocialWeibo) UserInfo ¶
func (s *SocialWeibo) UserInfo(token *oauth2.Token, _ *url.URL) (*BasicUserInfo, error)
Click to show internal directories.
Click to hide internal directories.