Documentation
¶
Overview ¶
Package utils //
Package utils //
Package utils //
Index ¶
Constants ¶
const DefaultBatchSize = 10
DefaultBatchSize holds the default value for the batch size
const DefaultEventFlushInterval = 1 * time.Second
DefaultEventFlushInterval holds the default value for the event flush interval
const DefaultEventQueueSize = 10000
DefaultEventQueueSize holds the default value for the event queue size
const DefaultOdpEventTimeout = 10 * time.Second
DefaultOdpEventTimeout holds the default value for the odp event timeout
const DefaultSegmentFetchTimeout = 10 * time.Second
DefaultSegmentFetchTimeout holds the default value for the segment fetch timeout
const DefaultSegmentsCacheSize = 10000
DefaultSegmentsCacheSize holds the default value for the segments cache size
const DefaultSegmentsCacheTimeout = 10 * time.Minute // 10 minutes
DefaultSegmentsCacheTimeout holds the default value for the segments cache timeout
const FetchSegmentsFailedError = "audience segments fetch failed (%s)"
FetchSegmentsFailedError error string when fetch failed with provided reason
const IdentityOdpDisabled = "ODP identify event is not dispatched (ODP disabled)"
IdentityOdpDisabled error string when odp event is not dispatched as odp is disabled
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
const InvalidSegmentIdentifier = "audience segments fetch failed (invalid identifier)"
InvalidSegmentIdentifier error string when fetch failed with invalid identifier
const ODPEventsAPIEndpointPath = "/v3/events"
ODPEventsAPIEndpointPath defines the endpoint path for events api
const OdpAPIKeyHeader = "x-api-key"
OdpAPIKeyHeader defines key for designating the ODP API public key
const OdpActionIdentified = "identified"
OdpActionIdentified holds the value for identified action type
const OdpEventFailed = "ODP event send failed (%s)"
OdpEventFailed error string when odp event failed with provided reason
const OdpEventType = "fullstack"
OdpEventType holds the value for the odp event type
const OdpFSUserIDKey = "fs_user_id"
OdpFSUserIDKey holds the key for the odp fullstack/feature experimentation userID
const OdpInvalidAction = "ODP action is not valid (cannot be empty)"
OdpInvalidAction error string when odp event action is invalid
const OdpInvalidData = "ODP data is not valid"
OdpInvalidData error string when odp event data is invalid
const OdpNotEnabled = "ODP is not enabled"
OdpNotEnabled error string when odp is not enabled
const OdpNotIntegrated = "ODP is not integrated"
OdpNotIntegrated error string when odp is not integrated
Variables ¶
This section is empty.
Functions ¶
func CompareSlices ¶
CompareSlices determines if two string slices are equal
func IsValidOdpData ¶
IsValidOdpData validates if data has all valid types only (string, integer, float, boolean, and nil),
Types ¶
This section is empty.