Help us shape the future of Go! Take the 2026 Go Developer Survey

googleanalytics

package
v1.1.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIManager

type APIManager struct {
	Providers        map[string]IProvider
	ProvidersByIndex map[int]IProvider
}

func (*APIManager) GetProvider

func (a *APIManager) GetProvider(name Provider) IProvider

type GoogleAnalytics4

type GoogleAnalytics4 struct {
	// contains filtered or unexported fields
}

GoogleAnalytics4 https://developers.google.com/analytics/devguides/reporting/data/v1

func (*GoogleAnalytics4) GetName

func (g *GoogleAnalytics4) GetName() Provider

func (*GoogleAnalytics4) RunReport

func (g *GoogleAnalytics4) RunReport(runReportRequest *ga.RunReportRequest) (*ga.RunReportResponse, error)

type IAPIManager

type IAPIManager interface {
	GetProvider(name Provider) IProvider
}

func NewAPIManager

func NewAPIManager(configService config.IConfig, newProviderFunctions ...NewProviderFunc) (IAPIManager, error)

type IProvider

type IProvider interface {
	GetName() Provider
	RunReport(runReportRequest *ga.RunReportRequest) (*ga.RunReportResponse, error)
}

func NewGA4

func NewGA4(configService config.IConfig) (IProvider, error)

type NewProviderFunc

type NewProviderFunc func(configService config.IConfig) (IProvider, error)

type Provider

type Provider string
const (
	UA  Provider = "ua" // TODO: Implement later
	GA4 Provider = "ga4"
)

func (Provider) String

func (p Provider) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL