analytics

package
v0.2.0-nightly.20220217 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analytics

type Analytics interface {
	Send(payload Payload) error
}

Analytics is the interface that must be fulfilled to send telemetry data. Sending analytics and service telemetry data can be toggled on and off.

func NewTransmitter

func NewTransmitter(cfg map[string]string) (Analytics, error)

NewTransmitter returns a new Transmitter or an error if one occurred Transmitter is used to transmit telemetry and analytics data

type Payload

type Payload map[string]interface{}

Payload holds key-value pairs for reporting analytics and telemetry data

type Transmitter

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

Transmitter fulfills Analytics to transmit telemetry and usage data

func (*Transmitter) Send

func (t *Transmitter) Send(payload Payload) error

Send fulfills the Analytics interface for analytics data transmission

Jump to

Keyboard shortcuts

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