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

telemetry

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPublicProvider

func IsPublicProvider(addr tfaddr.Provider) bool

Types

type NoopSender

type NoopSender struct {
	Logger *log.Logger
}

func (*NoopSender) SendEvent

func (t *NoopSender) SendEvent(ctx context.Context, name string, properties map[string]interface{})

type Notifier

type Notifier interface {
	Notify(ctx context.Context, method string, params interface{}) error
}

type Sender

type Sender interface {
	SendEvent(ctx context.Context, name string, properties map[string]interface{})
}

type Telemetry

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

func NewSender

func NewSender(version int, notifier Notifier) (*Telemetry, error)

func (*Telemetry) SendEvent

func (t *Telemetry) SendEvent(ctx context.Context, name string, properties map[string]interface{})

Jump to

Keyboard shortcuts

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