analytics

package
v0.0.0-...-0a43815 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NullSink = &nullSink{}

NullSink is an analytics sink to use in the event that we don't want to send analytics

Functions

This section is empty.

Types

type Client

type Client interface {
	Recorder
	Close()
	CloseWithTimeout(timeout time.Duration)
}

func NewClient

func NewClient(parent context.Context, sink Sink, logger hclog.Logger) Client

type EventPayload

type EventPayload = interface{}

type Events

type Events = []map[string]interface{}

type Recorder

type Recorder interface {
	LogEvent(payload EventPayload)
}

type Sink

type Sink interface {
	RecordAnalyticsEvents(ctx context.Context, events Events) error
}

Jump to

Keyboard shortcuts

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