analytics

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DailyEventCount        string = "Daily Event Count"
	DailyOrganisationCount string = "Daily Organization Count"
	DailyGroupCount        string = "Daily Project Count"
	DailyActiveGroupCount  string = "Daily Active Project Count"
	DailyUserCount         string = "Daily User Count"
	MixPanelDevToken       string = "YTAwYWI1ZWE3OTE2MzQwOWEwMjk4ZTA1NTNkNDQ0M2M="
	MixPanelProdToken      string = "YWViNzUwYWRmYjM0YTZmZjJkMzg2YTYyYWVhY2M2NWI="
	PerPage                int    = 20
	Page                   int    = 1
)

Variables

This section is empty.

Functions

func TrackDailyAnalytics

func TrackDailyAnalytics(Repo *Repo, cfg config.Configuration) func(context.Context, *asynq.Task) error

Types

type ActiveGroupAnalytics

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

func (*ActiveGroupAnalytics) Name

func (a *ActiveGroupAnalytics) Name() string

func (*ActiveGroupAnalytics) Track

func (a *ActiveGroupAnalytics) Track() error

type Analytics

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

func (*Analytics) RegisterTrackers

func (a *Analytics) RegisterTrackers()

type AnalyticsClient

type AnalyticsClient interface {
	Export(eventName string, e Event) error
}

type Event

type Event map[string]interface{}

type EventAnalytics

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

func (*EventAnalytics) Name

func (ea *EventAnalytics) Name() string

func (*EventAnalytics) Track

func (ea *EventAnalytics) Track() error

type GroupAnalytics

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

func (*GroupAnalytics) Name

func (g *GroupAnalytics) Name() string

func (*GroupAnalytics) Track

func (g *GroupAnalytics) Track() error

type MixPanelClient

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

func NewMixPanelClient

func NewMixPanelClient(cfg config.Configuration) (*MixPanelClient, error)

func (*MixPanelClient) Export

func (m *MixPanelClient) Export(eventName string, e Event) error

type NoopAnalyticsClient

type NoopAnalyticsClient struct{}

func NewNoopAnalyticsClient

func NewNoopAnalyticsClient() *NoopAnalyticsClient

func (*NoopAnalyticsClient) Export

func (n *NoopAnalyticsClient) Export(eventName string, e Event) error

type OrganisationAnalytics

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

func (*OrganisationAnalytics) Name

func (o *OrganisationAnalytics) Name() string

func (*OrganisationAnalytics) Track

func (o *OrganisationAnalytics) Track() error

type Tracker

type Tracker interface {
	Track() error
	Name() string
}

type UserAnalytics

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

func (*UserAnalytics) Name

func (u *UserAnalytics) Name() string

func (*UserAnalytics) Track

func (u *UserAnalytics) Track() error

Jump to

Keyboard shortcuts

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