analyticsservice

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsService

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

AnalyticsService provides a way to cache and send analytics to the server

func NewAnalyticsService

func NewAnalyticsService(timeout time.Duration, logger logger.Logger) *AnalyticsService

NewAnalyticsService creates and starts a analytics service to send data to the client

func (*AnalyticsService) PushToQueue

func (as *AnalyticsService) PushToQueue(target *evaluation.Target, featureConfig *evaluation.FeatureConfig, variation evaluation.Variation)

PushToQueue is used to queue analytics data to send to the server

func (*AnalyticsService) Start

func (as *AnalyticsService) Start(ctx context.Context, client *metricsclient.ClientWithResponsesInterface, environmentID string)

Start starts the client and timer to send analytics

Jump to

Keyboard shortcuts

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