File: settings.go

package info (click to toggle)
golang-google-api 0.0~git20161128.3cc2e59-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 64,468 kB
  • ctags: 71,262
  • sloc: makefile: 16
file content (23 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Package internal supports the options and transport packages.
package internal

import (
	"net/http"

	"golang.org/x/oauth2"
	"google.golang.org/grpc"
)

// DialSettings holds information needed to establish a connection with a
// Google API service.
type DialSettings struct {
	Endpoint                   string
	Scopes                     []string
	ServiceAccountJSONFilename string // if set, TokenSource is ignored.
	TokenSource                oauth2.TokenSource
	UserAgent                  string
	APIKey                     string
	HTTPClient                 *http.Client
	GRPCDialOpts               []grpc.DialOption
	GRPCConn                   *grpc.ClientConn
}