Versions in this module Expand all Collapse all v0 v0.1.19 Sep 27, 2018 v0.1.18 Jun 26, 2018 v0.1.17 Apr 11, 2018 v0.1.16 Oct 11, 2017 v0.1.15 Aug 10, 2017 v0.1.14 Jun 2, 2017 v0.1.13 Mar 3, 2017 v0.1.12 Feb 3, 2017 v0.1.11 Feb 3, 2017 v0.1.10 Feb 2, 2017 Changes in this version + const APIVersion + func NewAPIError(d []byte) error + type APIError struct + Field string + Trigger string + Type string + func (e *APIError) Error() string type AuthKey + ClientID string type Dsn + APIVersion string + AdwordsID string + ClientID string v0.1.9 Jan 28, 2017 v0.1.8 Jan 28, 2017 Changes in this version + const ApiVersion + const DsnOptSep + const DsnSep + var ErrAdwordsID = NewConnectionError("adwords id") + var ErrBadNetwork = NewConnectionError("service unavailable") + var ErrBadToken = NewConnectionError("invalid access token") + var ErrDevToken = NewConnectionError("developer token") + var ErrNoDsn = NewConnectionError("missing data source") + var ErrNoNetwork = NewConnectionError("not found") + var ErrQuery = NewQueryError("missing") + var ErrQueryBinding = NewQueryError("binding not match") + func NewApiError(d []byte) error + func NewConnectionError(text string) error + func NewQueryError(text string) error + type ApiError struct + Field string + Trigger string + Type string + func (e *ApiError) Error() string + type Auth struct + func NewAuthByClient(clientId, clientSecret, refreshToken string) (*Auth, error) + func NewAuthByToken(tk string) (*Auth, error) + func (a *Auth) IsSet() bool + func (a *Auth) String() string + func (a *Auth) Valid() bool + type AuthKey struct + ClientId string + ClientSecret string + RefreshToken string + type AuthToken struct + AccessToken string + Expiry time.Time + TokenType string + type Conn struct + func (c *Conn) Begin() (driver.Tx, error) + func (c *Conn) Close() error + func (c *Conn) Prepare(q string) (driver.Stmt, error) + type ConnectionError struct + func (e *ConnectionError) Error() string + type Driver struct + func (d *Driver) Open(dsn string) (driver.Conn, error) + type Dsn struct + AccessToken string + AdwordsId string + ApiVersion string + ClientId string + ClientSecret string + DeveloperToken string + RefreshToken string + SkipColumnHeader bool + SupportsZeroImpressions bool + UseRawEnumValues bool + func NewDsn(id string) *Dsn + func (d *Dsn) String() (n string) + type Opts struct + IncludeZeroImpressions bool + SkipColumnHeader bool + SkipReportHeader bool + SkipReportSummary bool + UseRawEnumValues bool + Version string + func NewOpts(version string, zero, head, enum bool) *Opts + type QueryError struct + func (e *QueryError) Error() string + type Rows struct + Data [][]string + Position int + Size int + func (r *Rows) Close() error + func (r *Rows) Columns() []string + func (r *Rows) Next(dest []driver.Value) error + type Stmt struct + Db *Conn + SrcQuery string + func (s *Stmt) Bind(args []driver.Value) error + func (s *Stmt) Close() error + func (s *Stmt) Exec(args []driver.Value) (driver.Result, error) + func (s *Stmt) Hash() (string, error) + func (s *Stmt) NumInput() int + func (s *Stmt) Query(args []driver.Value) (driver.Rows, error)