requester

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOAuthGoogle

type IOAuthGoogle interface {
	GetUserInfo(code string) (model.GoogleOauthResponse, error)
}

IOAuthGoogle interface for requester oauth provider google

type OAuthGoogle

type OAuthGoogle struct {
	Context    context.Context
	Config     *config.Configuration
	Logger     *logrus.Logger
	GConfig    *oauth2.Config
	HTTPClient *http.Client
}

OAuthGoogle struct for requester oauth provider google

func (*OAuthGoogle) GetUserInfo

func (og *OAuthGoogle) GetUserInfo(code string) (model.GoogleOauthResponse, error)

GetUserInfo retrieved user data from google services

Jump to

Keyboard shortcuts

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