Documentation
¶
Index ¶
- type APIManager
- type GoogleAnalytics4
- func (g *GoogleAnalytics4) GetDimensionsAndMetrics(ctx context.Context) ([]*ga.DimensionMetadata, []*ga.MetricMetadata, error)
- func (g *GoogleAnalytics4) GetMetrics(ctx context.Context, dateFrom, dateTo string, metrics []string, ...) (map[uint64]map[string]interface{}, error)
- func (g *GoogleAnalytics4) GetName() Provider
- func (g *GoogleAnalytics4) RunReport(ctx context.Context, runReportRequest *ga.RunReportRequest) (*ga.RunReportResponse, error)
- type IAPIManager
- type IProvider
- type NewProviderFunc
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIManager ¶
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) GetDimensionsAndMetrics ¶ added in v1.1.41
func (g *GoogleAnalytics4) GetDimensionsAndMetrics(ctx context.Context) ([]*ga.DimensionMetadata, []*ga.MetricMetadata, error)
func (*GoogleAnalytics4) GetMetrics ¶ added in v1.1.60
func (*GoogleAnalytics4) GetName ¶
func (g *GoogleAnalytics4) GetName() Provider
func (*GoogleAnalytics4) RunReport ¶
func (g *GoogleAnalytics4) RunReport(ctx context.Context, runReportRequest *ga.RunReportRequest) (*ga.RunReportResponse, error)
type IAPIManager ¶
func NewAPIManager ¶
func NewAPIManager(localConfigFolder string, configService config.IConfig, errorlogger errorlogger.ErrorLogger, newProviderFunctions ...NewProviderFunc) (IAPIManager, error)
type IProvider ¶
type IProvider interface { GetName() Provider RunReport(ctx context.Context, runReportRequest *ga.RunReportRequest) (*ga.RunReportResponse, error) GetDimensionsAndMetrics(ctx context.Context) ([]*ga.DimensionMetadata, []*ga.MetricMetadata, error) GetMetrics(ctx context.Context, dateFrom, dateTo string, metrics []string, dimensions []string) (map[uint64]map[string]interface{}, error) }
func NewGA4 ¶
func NewGA4(configFolder string, configService config.IConfig, errorlogger errorlogger.ErrorLogger) (IProvider, error)
type NewProviderFunc ¶
type NewProviderFunc func(configFolder string, configService config.IConfig, errorlogger errorlogger.ErrorLogger) (IProvider, error)
Click to show internal directories.
Click to hide internal directories.