Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthTimeout = 300 * time.Second AuthListenAddr = "localhost" AuthListenPort = 9080 AuthScheme = "http://" CallBackURL = "/callback" DefaultPerms = 0o600 ReadTimeout = 5 * time.Second WriteTimeout = 5 * time.Second IdleTimeout = 60 * time.Second ReadHeaderTimeout = 10 * time.Second )
Variables ¶
View Source
var ( ErrOAuthUUID = errors.New("unable to generate UUID") ErrOAuthHTTPServer = errors.New("unable to start HTTP server") ErrOAuthBrowser = errors.New("unable to open system browser") ErrOAuthTimeout = errors.New("timeout while waiting for authentication to finish") ErrOAuthTokenFetch = errors.New("unable to retrieve token from Google API") ErrOAuthTokenSave = errors.New("unable to save token to file") ErrOAuthTokenEncode = errors.New("unable to encode OAuth token to JSON") ErrInvalidCallbackState = errors.New("invalid OAuth callback state") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.