Versions in this module Expand all Collapse all v6 v6.0.2 Dec 2, 2024 Changes in this version + const UpdateTypeLargeSegmentChange + type Data struct + ExpiresAt int64 + FileSize int64 + Format int + Interval *int64 + TotalKeys int64 + type LargeSegment struct + ChangeNumber int64 + Keys []string + Name string + type LargeSegmentChangeUpdate struct + LargeSegments []LargeSegmentRFDResponseDTO + func NewLargeSegmentChangeUpdate(baseUpdate BaseUpdate, largeSegments []LargeSegmentRFDResponseDTO) *LargeSegmentChangeUpdate + func (u *LargeSegmentChangeUpdate) String() string + func (u *LargeSegmentChangeUpdate) UpdateType() string + type LargeSegmentRFDResponseDTO struct + ChangeNumber int64 + Name string + NotificationType string + RFD *RFD + SpecVersion string type MatcherDTO + UserDefinedLargeSegment *UserDefinedLargeSegmentMatcherDataDTO + type Memberships struct + ChangeNumber *int64 + Segments []Segment + type MembershipsResponseDTO struct + MyLargeSegments Memberships + MySegments Memberships + type Params struct + Body []byte + Headers http.Header + Method string + URL string + type RFD struct + Data Data + Params Params + type Segment struct + Name string + type UserDefinedLargeSegmentMatcherDataDTO struct + LargeSegmentName string v6.0.1 Sep 12, 2024 v6.0.0 May 14, 2024 Changes in this version + const ControlTypeStreamingDisabled + const ControlTypeStreamingEnabled + const ControlTypeStreamingPaused + const MessageTypeControl + const MessageTypeOccupancy + const MessageTypeUpdate + const SSEEventTypeError + const SSEEventTypeMessage + const SSEEventTypeSync + const UpdateTypeContol + const UpdateTypeSegmentChange + const UpdateTypeSplitChange + const UpdateTypeSplitKill + type AblyError struct + func NewAblyError(code int, statusCode int, message string, href string, timestamp int64) *AblyError + func (a *AblyError) Code() int + func (a *AblyError) EventType() string + func (a *AblyError) Href() string + func (a *AblyError) IsRetryable() bool + func (a *AblyError) Message() string + func (a *AblyError) StatusCode() int + func (a *AblyError) String() string + func (a *AblyError) Timestamp() int64 + type BaseMessage struct + func NewBaseMessage(timestamp int64, channel string) BaseMessage + func (m *BaseMessage) Channel() string + func (m *BaseMessage) EventType() string + func (m *BaseMessage) Timestamp() int64 + type BaseUpdate struct + func NewBaseUpdate(baseMessage BaseMessage, changeNumber int64) BaseUpdate + func (b *BaseUpdate) ChangeNumber() int64 + func (b *BaseUpdate) MessageType() int64 + type BetweenMatcherDataDTO struct + DataType string + End int64 + Start int64 + type BetweenStringMatcherDataDTO struct + End *string + Start *string + type ConditionDTO struct + ConditionType string + Label string + MatcherGroup MatcherGroupDTO + Partitions []PartitionDTO + type Config struct + ActiveFactories int64 + BurTimeouts int64 + EventsQueueSize int64 + FlagSetsInvalid int64 + FlagSetsTotal int64 + HTTPProxyDetected bool + ImpressionsListenerEnabled bool + ImpressionsMode int + ImpressionsQueueSize int64 + Integrations []string + NonReadyUsages int64 + OperationMode int + Rates *Rates + RedundantFactories int64 + Storage string + StreamingEnabled bool + Tags []string + TimeUntilReady int64 + URLOverrides *URLOverrides + type ControlUpdate struct + func NewControlUpdate(baseMessage BaseMessage, controlType string) *ControlUpdate + func (u *ControlUpdate) ControlType() string + func (u *ControlUpdate) MessageType() int64 + func (u *ControlUpdate) String() string + type DependencyMatcherDataDTO struct + Split string + Treatments []string + type Event interface + EventType func() string + Timestamp func() int64 + type EventDTO struct + EventTypeID string + Key string + Properties map[string]interface{} + Timestamp int64 + TrafficTypeName string + Value interface{} + func (e *EventDTO) Size() int + type FlagSetValidatonError struct + Message string + func (f FlagSetValidatonError) Error() string + type HTTPError struct + Code int + Message string + func (h HTTPError) Error() string + type HTTPErrors struct + Events map[int]int64 + Impressions map[int]int64 + ImpressionsCount map[int]int64 + Segments map[int]int64 + Splits map[int]int64 + Telemetry map[int]int64 + Token map[int]int64 + type HTTPLatencies struct + Events []int64 + Impressions []int64 + ImpressionsCount []int64 + Segments []int64 + Splits []int64 + Telemetry []int64 + Token []int64 + type Impression struct + BucketingKey string + ChangeNumber int64 + FeatureName string + KeyName string + Label string + Pt int64 + Time int64 + Treatment string + type ImpressionDTO struct + BucketingKey string + ChangeNumber int64 + KeyName string + Label string + Pt int64 + Time int64 + Treatment string + type ImpressionQueueObject struct + Impression Impression + Metadata Metadata + type ImpressionsCountDTO struct + PerFeature []ImpressionsInTimeFrameDTO + type ImpressionsDTO struct + KeyImpressions []ImpressionDTO + TestName string + type ImpressionsInTimeFrameDTO struct + FeatureName string + RawCount int64 + TimeFrame int64 + type Key struct + Feature string + Keys []string + type KeySelectorDTO struct + Attribute *string + TrafficType string + type LastSynchronization struct + Events int64 + Impressions int64 + ImpressionsCount int64 + Segments int64 + Splits int64 + Telemetry int64 + Token int64 + type MatcherDTO struct + Between *BetweenMatcherDataDTO + BetweenString *BetweenStringMatcherDataDTO + Boolean *bool + Dependency *DependencyMatcherDataDTO + KeySelector *KeySelectorDTO + MatcherType string + Negate bool + String *string + UnaryNumeric *UnaryNumericMatcherDataDTO + UserDefinedSegment *UserDefinedSegmentMatcherDataDTO + Whitelist *WhitelistMatcherDataDTO + type MatcherGroupDTO struct + Combiner string + Matchers []MatcherDTO + type Message interface + Channel func() string + MessageType func() int64 + type Metadata struct + MachineIP string + MachineName string + SDKVersion string + type MethodExceptions struct + Track int64 + Treatment int64 + TreatmentWithConfig int64 + Treatments int64 + TreatmentsByFlagSet int64 + TreatmentsByFlagSets int64 + TreatmentsWithConfig int64 + TreatmentsWithConfigByFlagSet int64 + TreatmentsWithConfigByFlagSets int64 + type MethodLatencies struct + Track []int64 + Treatment []int64 + TreatmentWithConfig []int64 + Treatments []int64 + TreatmentsByFlagSet []int64 + TreatmentsByFlagSets []int64 + TreatmentsWithConfig []int64 + TreatmentsWithConfigByFlagSet []int64 + TreatmentsWithConfigByFlagSets []int64 + type MySegmentDTO struct + ID string + Name string + type OccupancyMessage struct + func NewOccupancyMessage(baseMessage BaseMessage, publishers int64) *OccupancyMessage + func (o *OccupancyMessage) ChannelWithoutPrefix() string + func (o *OccupancyMessage) MessageType() int64 + func (o *OccupancyMessage) Publishers() int64 + func (o *OccupancyMessage) String() string + type ParsedCapabilities map[string][]string + type PartitionDTO struct + Size int + Treatment string + type QueueStoredEventDTO struct + Event EventDTO + Metadata Metadata + type Rates struct + Events int64 + Impressions int64 + Segments int64 + Splits int64 + Telemetry int64 + type SSESyncEvent struct + func (e *SSESyncEvent) EventType() string + func (e *SSESyncEvent) String() string + func (e *SSESyncEvent) Timestamp() int64 + type SegmentChangeUpdate struct + func NewSegmentChangeUpdate(baseUpdate BaseUpdate, segmentName string) *SegmentChangeUpdate + func (u *SegmentChangeUpdate) SegmentName() string + func (u *SegmentChangeUpdate) String() string + func (u *SegmentChangeUpdate) UpdateType() string + type SegmentChangesDTO struct + Added []string + Name string + Removed []string + Since int64 + Till int64 + type SegmentKeyDTO struct + LastModified int64 + Name string + Removed bool + type SplitChangeUpdate struct + func NewSplitChangeUpdate(baseUpdate BaseUpdate, pcn *int64, featureFlag *SplitDTO) *SplitChangeUpdate + func (u *SplitChangeUpdate) FeatureFlag() *SplitDTO + func (u *SplitChangeUpdate) PreviousChangeNumber() *int64 + func (u *SplitChangeUpdate) String() string + func (u *SplitChangeUpdate) UpdateType() string + type SplitChangesDTO struct + Since int64 + Splits []SplitDTO + Till int64 + type SplitDTO struct + Algo int + ChangeNumber int64 + Conditions []ConditionDTO + Configurations map[string]string + DefaultTreatment string + Killed bool + Name string + Seed int64 + Sets []string + Status string + TrafficAllocation int + TrafficAllocationSeed int64 + TrafficTypeName string + func (s SplitDTO) MarshalBinary() (data []byte, err error) + type SplitKillUpdate struct + func NewSplitKillUpdate(baseUpdate BaseUpdate, splitName string, defaultTreatment string) *SplitKillUpdate + func (u *SplitKillUpdate) DefaultTreatment() string + func (u *SplitKillUpdate) SplitName() string + func (u *SplitKillUpdate) String() string + func (u *SplitKillUpdate) ToSplitChangeUpdate() *SplitChangeUpdate + func (u *SplitKillUpdate) UpdateType() string + type Stats struct + AuthRejections int64 + EventsDropped int64 + EventsQueued int64 + HTTPErrors *HTTPErrors + HTTPLatencies *HTTPLatencies + ImpressionsDeduped int64 + ImpressionsDropped int64 + ImpressionsQueued int64 + LastSynchronizations *LastSynchronization + MethodExceptions *MethodExceptions + MethodLatencies *MethodLatencies + SegmentCount int64 + SegmentKeyCount int64 + SessionLengthMs int64 + SplitCount int64 + StreamingEvents []StreamingEvent + Tags []string + TokenRefreshes int64 + UpdatesFromSSE UpdatesFromSSE + type StreamingEvent struct + Data int64 + Timestamp int64 + Type int + type TelemetryQueueObject struct + Config Config + Metadata Metadata + type Token struct + PushEnabled bool + Token string + func (t *Token) CalculateNextTokenExpiration() (time.Duration, error) + func (t *Token) ChannelList() ([]string, error) + type TokenPayload struct + Capabilitites string + Exp int64 + Iat int64 + type URLOverrides struct + Auth bool + Events bool + Sdk bool + Stream bool + Telemetry bool + type UnaryNumericMatcherDataDTO struct + DataType string + Value int64 + type Uniques struct + Keys []Key + type Update interface + ChangeNumber func() int64 + UpdateType func() string + type UpdatesFromSSE struct + Splits int64 + type UserDefinedSegmentMatcherDataDTO struct + SegmentName string + type WhitelistMatcherDataDTO struct + Whitelist []string Other modules containing this package github.com/splitio/go-split-commons/v2 github.com/splitio/go-split-commons/v3 github.com/splitio/go-split-commons/v4 github.com/splitio/go-split-commons/v5