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

posthog

package
v0.106.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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) Group added in v0.79.38

func (p *PosthogAnalytics) Group(groupType string, groupKey string, data analytics.Properties)

func (*PosthogAnalytics) Identify added in v0.79.36

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

func (*PosthogAnalytics) IsFeatureEnabled added in v0.83.6

func (p *PosthogAnalytics) IsFeatureEnabled(_ context.Context, flagKey string, tenantID uuid.UUID, isEnabledIfNoPosthog bool) (bool, error)

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