telemetry

package
v0.0.0-...-68f5397 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptOutConfig

type OptOutConfig struct {
	OptOutClients string `env:"OPT_OUT_CLIENTS" envDefault:""`
}

func GetOptOutConfig

func GetOptOutConfig() (*OptOutConfig, error)

type TelemetryService

type TelemetryService interface {
	GetByAPIKey() (string, error)
	CheckForOptOut(ucid string) (bool, error)
	GetByPosthogInfo() (*util.PosthogConfig, error)
}

type TelemetryServiceImpl

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

func NewTelemetryServiceImpl

func NewTelemetryServiceImpl(logger *zap.SugaredLogger, client *http.Client, posthogConfig *util.PosthogConfig,
	optOutConfig *OptOutConfig) *TelemetryServiceImpl

func (*TelemetryServiceImpl) CheckForOptOut

func (impl *TelemetryServiceImpl) CheckForOptOut(ucid string) (bool, error)

func (*TelemetryServiceImpl) GetByAPIKey

func (impl *TelemetryServiceImpl) GetByAPIKey() (string, error)

func (*TelemetryServiceImpl) GetByPosthogInfo

func (impl *TelemetryServiceImpl) GetByPosthogInfo() (*util.PosthogConfig, error)

Jump to

Keyboard shortcuts

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