Documentation ¶
Index ¶
- Constants
- func NewGoogleAnalytics(ctx context.Context, sourceConfig *base.SourceConfig, ...) (base.Driver, error)
- func TestGoogleAnalytics(sourceConfig *base.SourceConfig) error
- type GAReportFieldsConfig
- type GoogleAnalytics
- func (g *GoogleAnalytics) Close() error
- func (g *GoogleAnalytics) GetAllAvailableIntervals() ([]*base.TimeInterval, error)
- func (g *GoogleAnalytics) GetCollectionMetaKey() string
- func (g *GoogleAnalytics) GetCollectionTable() string
- func (g *GoogleAnalytics) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error
- func (a *GoogleAnalytics) GetRefreshWindow() (time.Duration, error)
- func (a *GoogleAnalytics) ReplaceTables() bool
- func (g *GoogleAnalytics) Type() string
- type GoogleAnalyticsConfig
Constants ¶
View Source
const (
ReportsCollection = "report"
)
Variables ¶
This section is empty.
Functions ¶
func NewGoogleAnalytics ¶
func NewGoogleAnalytics(ctx context.Context, sourceConfig *base.SourceConfig, collection *base.Collection) (base.Driver, error)
NewGoogleAnalytics returns configured Google Analytics driver instance
func TestGoogleAnalytics ¶
func TestGoogleAnalytics(sourceConfig *base.SourceConfig) error
TestGoogleAnalytics tests connection to Google Analytics without creating Driver instance
Types ¶
type GAReportFieldsConfig ¶
type GoogleAnalytics ¶
type GoogleAnalytics struct { base.IntervalDriver // contains filtered or unexported fields }
func (*GoogleAnalytics) Close ¶
func (g *GoogleAnalytics) Close() error
func (*GoogleAnalytics) GetAllAvailableIntervals ¶
func (g *GoogleAnalytics) GetAllAvailableIntervals() ([]*base.TimeInterval, error)
func (*GoogleAnalytics) GetCollectionMetaKey ¶
func (g *GoogleAnalytics) GetCollectionMetaKey() string
func (*GoogleAnalytics) GetCollectionTable ¶
func (g *GoogleAnalytics) GetCollectionTable() string
func (*GoogleAnalytics) GetObjectsFor ¶
func (g *GoogleAnalytics) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error
func (*GoogleAnalytics) GetRefreshWindow ¶
func (a *GoogleAnalytics) GetRefreshWindow() (time.Duration, error)
func (*GoogleAnalytics) ReplaceTables ¶
func (a *GoogleAnalytics) ReplaceTables() bool
func (*GoogleAnalytics) Type ¶
func (g *GoogleAnalytics) Type() string
type GoogleAnalyticsConfig ¶
type GoogleAnalyticsConfig struct { AuthConfig *base.GoogleAuthConfig `mapstructure:"auth" json:"auth,omitempty" yaml:"auth,omitempty"` ViewID string `mapstructure:"view_id" json:"view_id,omitempty" yaml:"view_id,omitempty"` }
func (*GoogleAnalyticsConfig) Validate ¶
func (gac *GoogleAnalyticsConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.