analytics

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithEventPropsCollector

func ContextWithEventPropsCollector(ctx context.Context, name EventName) context.Context

func ContextWithTrackingProps

func ContextWithTrackingProps(ctx context.Context, props map[string]interface{}) context.Context

func SaveEventProp

func SaveEventProp(ctx context.Context, name EventName, key string, value interface{})

func SaveEventProps

func SaveEventProps(ctx context.Context, name EventName, props map[string]interface{})

Types

type EventName

type EventName string
const EventPRChecked EventName = "PR checked"
const EventRepoAnalyzed EventName = "Repo analyzed"

type Logger

type Logger interface {
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Debugf(format string, args ...interface{})
}

func Log

func Log(ctx context.Context) Logger

type Tracker

type Tracker interface {
	Track(ctx context.Context, event EventName)
}

func GetTracker

func GetTracker(_ context.Context) Tracker

Jump to

Keyboard shortcuts

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