Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthTokenUrl = "https://accounts.google.com/o/oauth2/token" TokenCheckUrl = "https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleAuthRequest ¶
type GoogleAuthResponse ¶
type GoogleService ¶
type GoogleService struct {
// contains filtered or unexported fields
}
func (*GoogleService) GetAuthRefresh ¶
func (service *GoogleService) GetAuthRefresh(ctx context.Context, authRequest *GoogleAuthRequest) (*GoogleAuthResponse, error)
func (*GoogleService) TokenInfo ¶
func (service *GoogleService) TokenInfo(ctx context.Context, accessToken string) (*GoogleTokenInfoResponse, error)
type GoogleTokenInfoResponse ¶
type Service ¶
type Service interface { GetAuthRefresh(ctx context.Context, authRequest *GoogleAuthRequest) (*GoogleAuthResponse, error) TokenInfo(ctx context.Context, accessToken string) (*GoogleTokenInfoResponse, error) }
func NewGoogleService ¶
Click to show internal directories.
Click to hide internal directories.