google

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(code string) (*oauth2.Token, error)

func Configure

func Configure(c *config.ConfigMap) error

Types

type User

type User struct {
	ID            string `json:"id"`
	Email         string `json:"email"`
	VerifiedEmail bool   `json:"verified_email"`
	Name          string `json:"name"`
	GivenName     string `json:"given_name"`
	Picture       string `json:"picture"`
	Locale        string `json:"locale"`
}

func GetUserByToken

func GetUserByToken(token *oauth2.Token) (user *User, err error)

func (*User) GetAvatar

func (u *User) GetAvatar() string

func (*User) GetEmailAddress

func (u *User) GetEmailAddress() string

func (*User) GetFullname

func (u *User) GetFullname() string

func (*User) GetUserId

func (u *User) GetUserId() string

Jump to

Keyboard shortcuts

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