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

analytics

package
v0.19.1253 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(v *validator.Validate, opts ...optFn) (*writer, error)

func NoopGroupFn

func NoopGroupFn(context.Context) (*segment.Group, error)

func NoopIdentifyFn

func NoopIdentifyFn(context.Context) (*segment.Identify, error)

func WithDisable

func WithDisable(disabled bool) optFn

func WithGroupFn

func WithGroupFn(fn GroupFn) optFn

func WithIdentifyFn

func WithIdentifyFn(fn IdentifyFn) optFn

func WithLogger

func WithLogger(l *zap.Logger) optFn

func WithProperties

func WithProperties(props map[string]interface{}) optFn

func WithSegmentKey

func WithSegmentKey(key string) optFn

func WithUserIDFn

func WithUserIDFn(fn UserIDFn) optFn

Types

type GroupFn

type GroupFn func(context.Context) (*segment.Group, error)

type IdentifyFn

type IdentifyFn func(context.Context) (*segment.Identify, error)

type UserIDFn

type UserIDFn func(context.Context) (string, error)

type Writer

type Writer interface {
	Identify(context.Context)
	Group(context.Context)
	Close()
	Track(context.Context, events.Event, map[string]interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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