posthog

package
v0.0.0-...-4ae6852 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Posthog

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

func New

func New(ctx context.Context, logger *slog.Logger, posthogAPIKey string, posthogEndpoint string) *Posthog

func (*Posthog) CaptureEvent

func (p *Posthog) CaptureEvent(ctx context.Context, eventName string, distinctID string, eventProperties map[string]interface{}) error

func (*Posthog) IsFlagEnabled

func (p *Posthog) IsFlagEnabled(ctx context.Context, flag feature.Flag, distinctID string) (bool, error)

Jump to

Keyboard shortcuts

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