Documentation ¶
Overview ¶
Package config allows to parse a TOML config file. It houses the OAuth configuration for Google API access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GoogleClientID is the client ID for OAuthConfig. // It's stored inside the config TOML file for security reasons. GoogleClientID = config.String("taskqueue.clientID", "Unknown") // GoogleClientSecret is the client secret for OAuthConfig. // It's stored inside the config TOML file for security reasons. GoogleClientSecret = config.String("taskqueue.clientSecret", "Unknown") // OAuthConfig is the used configuration for every Google API access. OAuthConfig = &oauth.Config{ Scope: "https://www.googleapis.com/auth/taskqueue", AuthURL: "https://accounts.google.com/o/oauth2/auth", TokenURL: "https://accounts.google.com/o/oauth2/token", RedirectURL: "postmessage", } )
Functions ¶
func ReadConfig ¶
func ReadConfig()
ReadConfig parses a given TOML file and fills variables with the given information (mostly API secrets).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.