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
Click to show internal directories.
Click to hide internal directories.