posthog

package
v0.79.37 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PosthogAnalytics

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

func NewPosthogAnalytics

func NewPosthogAnalytics(opts *PosthogAnalyticsOpts) (*PosthogAnalytics, error)

func (*PosthogAnalytics) Close added in v0.79.36

func (p *PosthogAnalytics) Close() error

func (*PosthogAnalytics) Count added in v0.79.36

func (p *PosthogAnalytics) Count(ctx context.Context, resource analytics.Resource, action analytics.Action, props ...analytics.Properties)

func (*PosthogAnalytics) Enqueue

func (p *PosthogAnalytics) Enqueue(ctx context.Context, resource analytics.Resource, action analytics.Action, resourceId string, properties analytics.Properties)

func (*PosthogAnalytics) Identify added in v0.79.36

func (p *PosthogAnalytics) Identify(userId uuid.UUID, properties analytics.Properties)

func (*PosthogAnalytics) Start added in v0.79.36

func (p *PosthogAnalytics) Start()

func (*PosthogAnalytics) Tenant

func (p *PosthogAnalytics) Tenant(tenantId uuid.UUID, data analytics.Properties)

type PosthogAnalyticsOpts

type PosthogAnalyticsOpts struct {
	ApiKey           string
	Endpoint         string
	Logger           *zerolog.Logger
	AggregateEnabled bool
	FlushInterval    time.Duration
	MaxKeys          int64
	ServerURL        string
}

Jump to

Keyboard shortcuts

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