telemetryclient

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package telemetryclient is internal package to support telemetry without introducing a direct dependency to the actual implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConstructor

func WithConstructor(ctx context.Context, ctor Constructor) context.Context

WithConstructor specifies which telemetry to use.

Types

type Client

type Client interface {
	Run(ctx context.Context)
	Report(ctx context.Context) error
}

Client is the common interface for telemetry.

type Constructor

type Constructor func(satelliteAddress string) (Client, error)

Constructor creates a new telemetry client.

func ConstructorFrom

func ConstructorFrom(ctx context.Context) (_ Constructor, ok bool)

ConstructorFrom loads the telemetry client constructor from context.

Jump to

Keyboard shortcuts

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