apps

package
v0.0.0-...-eca3c71 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseProvider

type BaseProvider struct {
	App            social.Provider
	ClientId       string
	ClientSecret   string
	Scope          string
	AuthURL        string
	TokenURL       string
	RedirectURL    string
	AccessType     string
	ApprovalPrompt string
}

func (*BaseProvider) CanConnect

func (p *BaseProvider) CanConnect(tok *social.Token, userSocial *social.UserSocial) (bool, error)

func (*BaseProvider) GetConfig

func (p *BaseProvider) GetConfig() *social.Config

type Dropbox

type Dropbox struct {
	BaseProvider
}

func NewDropbox

func NewDropbox(clientId, secret string) *Dropbox

func (*Dropbox) GetIndentify

func (p *Dropbox) GetIndentify(tok *social.Token) (string, error)

func (*Dropbox) GetName

func (p *Dropbox) GetName() string

func (*Dropbox) GetPath

func (p *Dropbox) GetPath() string

func (*Dropbox) GetType

func (p *Dropbox) GetType() social.SocialType

type Facebook

type Facebook struct {
	BaseProvider
}

func NewFacebook

func NewFacebook(clientId, secret string) *Facebook

func (*Facebook) GetIndentify

func (p *Facebook) GetIndentify(tok *social.Token) (string, error)

func (*Facebook) GetName

func (p *Facebook) GetName() string

func (*Facebook) GetPath

func (p *Facebook) GetPath() string

func (*Facebook) GetType

func (p *Facebook) GetType() social.SocialType

type Github

type Github struct {
	BaseProvider
}

func NewGithub

func NewGithub(clientId, secret string) *Github

func (*Github) GetIndentify

func (p *Github) GetIndentify(tok *social.Token) (string, error)

func (*Github) GetName

func (p *Github) GetName() string

func (*Github) GetPath

func (p *Github) GetPath() string

func (*Github) GetType

func (p *Github) GetType() social.SocialType

type Google

type Google struct {
	BaseProvider
}

func NewGoogle

func NewGoogle(clientId, secret string) *Google

func (*Google) GetIndentify

func (p *Google) GetIndentify(tok *social.Token) (string, error)

func (*Google) GetName

func (p *Google) GetName() string

func (*Google) GetPath

func (p *Google) GetPath() string

func (*Google) GetType

func (p *Google) GetType() social.SocialType

type QQ

type QQ struct {
	BaseProvider
}

func NewQQ

func NewQQ(clientId, secret string) *QQ

func (*QQ) GetIndentify

func (p *QQ) GetIndentify(tok *social.Token) (string, error)

func (*QQ) GetName

func (p *QQ) GetName() string

func (*QQ) GetPath

func (p *QQ) GetPath() string

func (*QQ) GetType

func (p *QQ) GetType() social.SocialType

type Weibo

type Weibo struct {
	BaseProvider
}

func NewWeibo

func NewWeibo(clientId, secret string) *Weibo

func (*Weibo) GetIndentify

func (p *Weibo) GetIndentify(tok *social.Token) (string, error)

func (*Weibo) GetName

func (p *Weibo) GetName() string

func (*Weibo) GetPath

func (p *Weibo) GetPath() string

func (*Weibo) GetType

func (p *Weibo) GetType() social.SocialType

Jump to

Keyboard shortcuts

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