track

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(options ...TrackOption) trackOpts

Types

type Traceable

type Traceable interface {
	UserProperties() map[string]interface{}
	EventProperties() map[string]interface{}
}

type TrackOption

type TrackOption func(*trackOpts)

func WithAnonymousID

func WithAnonymousID(anonymousID string) TrackOption

func WithEmail

func WithEmail(email string) TrackOption

func WithUserID

func WithUserID(userID string) TrackOption

type Trackable

type Trackable interface {
	io.Closer
	Track(ctx context.Context, eventName string, t Traceable, opts ...TrackOption) error
}

Jump to

Keyboard shortcuts

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