analytics

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventReporter

type EventReporter interface {
	Close()
	AddUser(ctx context.Context, userID string, properties map[string]any) error
	EventOccurred(ctx context.Context, event types.ServiceEventType, userID string, properties map[string]any) error
}

EventReporter collects data about customers.

func NewNoopEventReporter

func NewNoopEventReporter() EventReporter

NewNoopEventReporter returns a new no-op EventReporter.

type NoopEventReporter

type NoopEventReporter struct{}

NoopEventReporter is a no-op EventReporter.

func (*NoopEventReporter) AddUser

AddUser does nothing.

func (*NoopEventReporter) Close

func (c *NoopEventReporter) Close()

Close does nothing.

func (*NoopEventReporter) EventOccurred

EventOccurred does nothing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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