utils

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package utils //

Package utils //

Package utils //

Index

Constants

View Source
const DefaultBatchSize = 10

DefaultBatchSize holds the default value for the batch size

View Source
const DefaultEventFlushInterval = 1 * time.Second

DefaultEventFlushInterval holds the default value for the event flush interval

View Source
const DefaultEventQueueSize = 10000

DefaultEventQueueSize holds the default value for the event queue size

View Source
const DefaultOdpEventTimeout = 10 * time.Second

DefaultOdpEventTimeout holds the default value for the odp event timeout

View Source
const DefaultSegmentFetchTimeout = 10 * time.Second

DefaultSegmentFetchTimeout holds the default value for the segment fetch timeout

View Source
const DefaultSegmentsCacheSize = 10000

DefaultSegmentsCacheSize holds the default value for the segments cache size

View Source
const DefaultSegmentsCacheTimeout = 10 * time.Minute // 10 minutes

DefaultSegmentsCacheTimeout holds the default value for the segments cache timeout

View Source
const FetchSegmentsFailedError = "audience segments fetch failed (%s)"

FetchSegmentsFailedError error string when fetch failed with provided reason

View Source
const IdentityOdpDisabled = "ODP identify event is not dispatched (ODP disabled)"

IdentityOdpDisabled error string when odp event is not dispatched as odp is disabled

View Source
const IdentityOdpNotIntegrated = "ODP identify event is not dispatched (ODP not integrated)"

IdentityOdpNotIntegrated error string when odp event is not dispatched as odp is not integrated

View Source
const InvalidSegmentIdentifier = "audience segments fetch failed (invalid identifier)"

InvalidSegmentIdentifier error string when fetch failed with invalid identifier

View Source
const ODPEventsAPIEndpointPath = "/v3/events"

ODPEventsAPIEndpointPath defines the endpoint path for events api

View Source
const OdpAPIKeyHeader = "x-api-key"

OdpAPIKeyHeader defines key for designating the ODP API public key

View Source
const OdpActionIdentified = "identified"

OdpActionIdentified holds the value for identified action type

View Source
const OdpEventFailed = "ODP event send failed (%s)"

OdpEventFailed error string when odp event failed with provided reason

View Source
const OdpEventType = "fullstack"

OdpEventType holds the value for the odp event type

View Source
const OdpFSUserIDKey = "fs_user_id"

OdpFSUserIDKey holds the key for the odp fullstack/feature experimentation userID

View Source
const OdpInvalidAction = "ODP action is not valid (cannot be empty)"

OdpInvalidAction error string when odp event action is invalid

View Source
const OdpInvalidData = "ODP data is not valid"

OdpInvalidData error string when odp event data is invalid

View Source
const OdpNotEnabled = "ODP is not enabled"

OdpNotEnabled error string when odp is not enabled

View Source
const OdpNotIntegrated = "ODP is not integrated"

OdpNotIntegrated error string when odp is not integrated

Variables

This section is empty.

Functions

func CompareSlices

func CompareSlices(a, b []string) bool

CompareSlices determines if two string slices are equal

func IsValidOdpData

func IsValidOdpData(data map[string]interface{}) bool

IsValidOdpData validates if data has all valid types only (string, integer, float, boolean, and nil),

Types

This section is empty.

Jump to

Keyboard shortcuts

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