analytics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package analytics provides adapters for forwarding ProductGraph events to external analytics providers via omnidxi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter forwards ProductGraph events to analytics providers.

func NewAdapter

func NewAdapter(tracker omnidxi.Tracker) *Adapter

NewAdapter creates a new analytics adapter with the given tracker.

func (*Adapter) Close

func (a *Adapter) Close() error

Close shuts down the adapter and underlying tracker.

func (*Adapter) Flush

func (a *Adapter) Flush(ctx context.Context) error

Flush forces the tracker to send any buffered events.

func (*Adapter) Publish

func (a *Adapter) Publish(ctx context.Context, events []schema.Event) error

Publish implements events.Publisher for analytics forwarding.

Jump to

Keyboard shortcuts

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