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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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