telemetry

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIURL = "https://telemetry.batch.sh"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token      string
	PlumberID  string
	CLIOptions *opts.CLIOptions

	// optional
	RoundTripper http.RoundTripper
}

type ITelemetry

type ITelemetry interface {
	Enqueue(c posthog.Capture) error
}

type NoopTelemetry

type NoopTelemetry struct{}

func (*NoopTelemetry) Enqueue

func (t *NoopTelemetry) Enqueue(_ posthog.Capture) error

type Telemetry

type Telemetry struct {
	Client posthog.Client
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Telemetry, error)

func (*Telemetry) Enqueue

func (t *Telemetry) Enqueue(c posthog.Capture) error

Jump to

Keyboard shortcuts

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