Documentation ¶
Index ¶
- Constants
- type AuthCallbackServer
- func (acs AuthCallbackServer) CSS() string
- func (acs AuthCallbackServer) HTML() string
- func (acs AuthCallbackServer) Hangup(done chan url.Values, values url.Values)
- func (acs AuthCallbackServer) Javascript() string
- func (acs AuthCallbackServer) Log() Logger
- func (acs AuthCallbackServer) Port() int
- func (acs *AuthCallbackServer) SetHangupFunc(hangupFunc func(chan url.Values, url.Values))
- func (acs AuthCallbackServer) Start(done chan url.Values)
- type AuthcodeClientImpersonator
- type CallbackServer
- type ClientImpersonator
- type JSONPrinter
- type Logger
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, a ...interface{})
- func (l *Logger) Mute()
- func (l *Logger) Robots(msg string)
- func (l *Logger) Robotsf(format string, a ...interface{})
- func (l *Logger) Unmute()
- func (l *Logger) Warn(msg string)
- type Printer
Constants ¶
View Source
const AuthcodeCallbackHTML = `` /* 223-byte string literal not displayed */
View Source
const AuthcodeCallbackJS = ``
View Source
const CallbackCSS = `` /* 169-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCallbackServer ¶
type AuthCallbackServer struct {
// contains filtered or unexported fields
}
func NewAuthCallbackServer ¶
func NewAuthCallbackServer(html, css, js string, log Logger, port int) AuthCallbackServer
func (AuthCallbackServer) CSS ¶
func (acs AuthCallbackServer) CSS() string
func (AuthCallbackServer) HTML ¶
func (acs AuthCallbackServer) HTML() string
func (AuthCallbackServer) Hangup ¶
func (acs AuthCallbackServer) Hangup(done chan url.Values, values url.Values)
func (AuthCallbackServer) Javascript ¶
func (acs AuthCallbackServer) Javascript() string
func (AuthCallbackServer) Log ¶
func (acs AuthCallbackServer) Log() Logger
func (AuthCallbackServer) Port ¶
func (acs AuthCallbackServer) Port() int
func (*AuthCallbackServer) SetHangupFunc ¶
func (acs *AuthCallbackServer) SetHangupFunc(hangupFunc func(chan url.Values, url.Values))
func (AuthCallbackServer) Start ¶
func (acs AuthCallbackServer) Start(done chan url.Values)
type AuthcodeClientImpersonator ¶
type AuthcodeClientImpersonator struct { ClientID string ClientSecret string Audience string Scope string Port int Log Logger AuthCallbackServer CallbackServer BrowserLauncher func(string) error // contains filtered or unexported fields }
func (AuthcodeClientImpersonator) Authorize ¶
func (aci AuthcodeClientImpersonator) Authorize()
func (AuthcodeClientImpersonator) Done ¶
func (aci AuthcodeClientImpersonator) Done() chan client.Token
func (AuthcodeClientImpersonator) Start ¶
func (aci AuthcodeClientImpersonator) Start()
type CallbackServer ¶
type ClientImpersonator ¶
type JSONPrinter ¶
type JSONPrinter struct {
Log Logger
}
func NewJSONPrinter ¶
func NewJSONPrinter(log Logger) JSONPrinter
func (JSONPrinter) Print ¶
func (jp JSONPrinter) Print(obj interface{}) error
Click to show internal directories.
Click to hide internal directories.