google

package
v0.0.0-...-491560f Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderID = 1
	Scheme     = "https"
	Host       = "www.googleapis.com"
	Opaque     = "//www.googleapis.com/plus/v1/people/me"
	AuthURL    = "https://accounts.google.com/o/oauth2/auth"
	TokenURL   = "https://accounts.google.com/o/oauth2/token"
)
View Source
const (
	FakeEmail = "test@test.com"
)

Variables

View Source
var (
	GetAuthUrl      = GetAuthUrlFake
	GetUserFromCode = GetUserFromCodeFake
)
View Source
var RequestURL = &url.URL{
	Scheme: Scheme,
	Host:   Host,
	Opaque: Opaque,
}

Functions

func GetAuthUrlFake

func GetAuthUrlFake() (string, error)

func GetAuthUrlImpl

func GetAuthUrlImpl() (string, error)

func Initialize

func Initialize()

Types

type GetAuthURLFunc

type GetAuthURLFunc func() (string, error)

type GetUserFromCodeFunc

type GetUserFromCodeFunc func(state string, code string) (GoogleUser, error)

type GoogleUser

type GoogleUser struct {
	Name         string
	Email        string
	AccessToken  string
	RefreshToken string
}

func GetUserFromCodeFake

func GetUserFromCodeFake(state string, code string) (GoogleUser, error)

func GetUserFromCodeImpl

func GetUserFromCodeImpl(state string, code string) (GoogleUser, error)

Jump to

Keyboard shortcuts

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