goth: github.com/markbates/goth/providers/faux Index | Files

package faux

import "github.com/markbates/goth/providers/faux"

Package faux is used exclusively for testing purposes. I would strongly suggest you move along as there's nothing to see here.

Index

Package Files

faux.go

type Provider Uses

type Provider struct {
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

Provider is used only for testing.

func (*Provider) BeginAuth Uses

func (p *Provider) BeginAuth(state string) (goth.Session, error)

BeginAuth is used only for testing.

func (*Provider) Client Uses

func (p *Provider) Client() *http.Client

func (*Provider) Debug Uses

func (p *Provider) Debug(debug bool)

Debug is used only for testing.

func (*Provider) FetchUser Uses

func (p *Provider) FetchUser(session goth.Session) (goth.User, error)

FetchUser is used only for testing.

func (*Provider) Name Uses

func (p *Provider) Name() string

Name is used only for testing.

func (*Provider) RefreshToken Uses

func (p *Provider) RefreshToken(refreshToken string) (*oauth2.Token, error)

RefreshToken is used only for testing

func (*Provider) RefreshTokenAvailable Uses

func (p *Provider) RefreshTokenAvailable() bool

RefreshTokenAvailable is used only for testing

func (*Provider) SetName Uses

func (p *Provider) SetName(name string)

SetName is to update the name of the provider (needed in case of multiple providers of 1 type)

func (*Provider) UnmarshalSession Uses

func (p *Provider) UnmarshalSession(data string) (goth.Session, error)

UnmarshalSession is used only for testing.

type Session Uses

type Session struct {
    ID          string
    Name        string
    Email       string
    AuthURL     string
    AccessToken string
}

Session is used only for testing.

func (*Session) Authorize Uses

func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error)

Authorize is used only for testing.

func (*Session) GetAuthURL Uses

func (s *Session) GetAuthURL() (string, error)

GetAuthURL is used only for testing.

func (*Session) Marshal Uses

func (s *Session) Marshal() string

Marshal is used only for testing.

Package faux imports 6 packages (graph). Updated 2017-07-06. Refresh now. Tools for package owners.