auth

package
v0.0.0-...-26669be Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ctx context.Context, config *oauth2.Config) *http.Client

GetClient uses a Context and Config to retrieve a Token then generate a Client. It returns the generated Client.

func GetService

func GetService(path string) (*drive.Service, error)

GetService uses a path to load a Google App credential file downloaded from the Google developer console. It returns a Service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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