Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Treatment getTreatment Treatment = "treatment" // Treatments getTreatments Treatments = "treatments" // TreatmentWithConfig getTreatmentWithConfig TreatmentWithConfig = "treatmentWithConfig" // TreatmentsWithConfig getTreatmentsWithConfig TreatmentsWithConfig = "treatmentsWithConfig" // Track track Track = "track" )
View Source
const ( // SplitSync splitChanges SplitSync = iota // SegmentSync segmentChanges SegmentSync // ImpressionSync impressions ImpressionSync // ImpressionCountSync impressionsCount ImpressionCountSync // EventSync events EventSync // TelemetrySync telemetry TelemetrySync // TokenSync auth TokenSync )
View Source
const ( // ImpressionsDropped dropped ImpressionsDropped = iota // ImpressionsDeduped deduped ImpressionsDeduped // ImpressionsQueued queued ImpressionsQueued )
View Source
const ( // EventsDropped dropped EventsDropped = iota // EventsQueued queued EventsQueued )
View Source
const ( // LatencyBucketCount Max buckets LatencyBucketCount = 23 // MaxStreamingEvents Max streaming events allowed MaxStreamingEvents = 20 // MaxTags Max tags MaxTags = 10 )
View Source
const ( EventTypeSSEConnectionEstablished = iota * 10 EventTypeOccupancyPri EventTypeOccupancySec EventTypeStreamingStatus EventTypeConnectionError EventTypeTokenRefresh EventTypeAblyError EventTypeSyncMode )
View Source
const ( StreamingDisabled = iota StreamingEnabled StreamingPaused )
View Source
const ( Requested = iota NonRequested )
View Source
const ( Streaming = iota Polling )
View Source
const ( Standalone = iota Consumer Producer )
View Source
const ( ImpressionsModeOptimized = iota ImpressionsModeDebug )
View Source
const ( Redis = "redis" Memory = "memory" )
Variables ¶
This section is empty.
Functions ¶
func GetStreamingEvent ¶
func GetStreamingEvent(eventType int, data int64) *dtos.StreamingEvent
func IsMethodValid ¶
IsMethodValid returs true if the supplied method name is valid
Types ¶
type InitConfig ¶
type InitConfig struct { AdvancedConfig conf.AdvancedConfig TaskPeriods conf.TaskPeriods ManagerConfig conf.ManagerConfig }
InitConfig involves entire config for init
type RecorderSingle ¶
type RecorderSingle struct {
// contains filtered or unexported fields
}
RecorderSingle struct for telemetry sync
func (*RecorderSingle) SynchronizeConfig ¶
func (e *RecorderSingle) SynchronizeConfig(cfg InitConfig, timedUntilReady int64, factoryInstances map[string]int64, tags []string)
SynchronizeConfig syncs telemetry config
func (*RecorderSingle) SynchronizeStats ¶
func (e *RecorderSingle) SynchronizeStats() error
SynchronizeStats syncs telemetry stats
type SynchronizerRedis ¶
type SynchronizerRedis struct {
// contains filtered or unexported fields
}
func (*SynchronizerRedis) SynchronizeConfig ¶
func (r *SynchronizerRedis) SynchronizeConfig(cfg InitConfig, timedUntilReady int64, factoryInstances map[string]int64, tags []string)
func (*SynchronizerRedis) SynchronizeStats ¶
func (r *SynchronizerRedis) SynchronizeStats() error
type TelemetrySynchronizer ¶
type TelemetrySynchronizer interface { SynchronizeConfig(cfg InitConfig, timedUntilReady int64, factoryInstances map[string]int64, tags []string) SynchronizeStats() error }
TelemetrySynchronizer interface
func NewSynchronizerRedis ¶
func NewSynchronizerRedis(storage storage.TelemetryConfigProducer, logger logging.LoggerInterface) TelemetrySynchronizer
func NewTelemetrySynchronizer ¶
func NewTelemetrySynchronizer( telemetryStorage storage.TelemetryStorageConsumer, telemetryRecorder service.TelemetryRecorder, splitStorage storage.SplitStorageConsumer, segmentStorage storage.SegmentStorageConsumer, logger logging.LoggerInterface, metadata dtos.Metadata, runtimeTelemetry storage.TelemetryRuntimeProducer, ) TelemetrySynchronizer
NewTelemetrySynchronizer creates new event synchronizer for posting events
Click to show internal directories.
Click to hide internal directories.