Help us shape the future of Go! Take the 2026 Go Developer Survey

analytics

package
v0.77.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analytics

type Analytics interface {
	// Enqueue queues an analytics event for processing.
	// event is the name of the event to track.
	// userId is the ID of the user performing the action.
	// tenantId is an optional tenant ID to associate with this event.
	// set contains key-value pairs to set on the user/group profile (e.g. email, name, etc.).
	// metadata contains additional metadata to attach to the event.
	Enqueue(event string, userId string, tenantId *string, set map[string]interface{}, metadata map[string]interface{})

	// Tenant updates properties for a tenant group.
	// tenantId is the ID of the tenant to update.
	// data contains key-value pairs of properties to set on the tenant.
	Tenant(tenantId string, data map[string]interface{})
}

type NoOpAnalytics

type NoOpAnalytics struct{}

func (NoOpAnalytics) Enqueue

func (a NoOpAnalytics) Enqueue(event string, userId string, tenantId *string, set map[string]interface{}, metadata map[string]interface{})

func (NoOpAnalytics) Tenant

func (a NoOpAnalytics) Tenant(tenantId string, data map[string]interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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