social

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2015 License: MIT Imports: 9 Imported by: 0

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 BasicUserInfo struct {
	Identity string
	Name     string
	Email    string
}

type SocialConnector

type SocialConnector interface {
	Type() int
	UserInfo(*oauth2.Token, *url.URL) (*BasicUserInfo, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL