analytics

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analytics

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

Analytics is wrapper struct for Google Analytics.

func New

func New(conf config.Config) (*Analytics, error)

New returns initialized Analytics.

func (*Analytics) GetRealtime

func (a *Analytics) GetRealtime(id string) (*SDK.RealtimeData, error)

GetRealtime gets *SDK.RealtimeData.

func (*Analytics) GetRealtimeActiveUser

func (a *Analytics) GetRealtimeActiveUser(id string) (int64, error)

GetRealtimeActiveUser gets active user.

func (*Analytics) SetLogger added in v0.5.0

func (a *Analytics) SetLogger(logger log.Logger)

SetLogger sets internal API logger.

Jump to

Keyboard shortcuts

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