Versions in this module Expand all Collapse all v2 v2.0.2 Mar 25, 2024 Changes in this version + const EventType_AggVariableDefaulted + const EventType_AggVariableEvaluated + const EventType_CustomEvent + const EventType_VariableDefaulted + const EventType_VariableEvaluated + func ChunkSlice(slice []Event, chunkSize int) [][]Event + type BaseVariable struct + Key string + Type_ string + Value interface{} + type BatchEventsBody struct + Batch []UserEventsBatchRecord + type BucketedUserConfig struct + Environment Environment + FeatureVariationMap map[string]string + Features map[string]Feature + KnownVariableKeys []float64 + Project Project + User *User + VariableVariationMap map[string]FeatureVariation + Variables map[string]ReadOnlyVariable + type EdgeDBSettings struct + Enabled bool + type Environment struct + Id string + Key string + type ErrorResponse struct + Data interface{} + Message string + type Event struct + ClientDate time.Time + CustomType string + FeatureVars map[string]string + MetaData map[string]interface{} + Target string + Type_ string + UserId string + Value float64 + type EventQueueOptions struct + DisableAutomaticEventLogging bool + DisableCustomEventLogging bool + EventRequestChunkSize int + EventsAPIBasePath string + FlushEventQueueSize int + FlushEventsInterval time.Duration + MaxEventQueueSize int + func (o *EventQueueOptions) CheckBounds() + func (o *EventQueueOptions) IsEventLoggingDisabled(eventType string) bool + type Feature struct + EvalReason string + Id string + Key string + Type_ string + Variation string + VariationKey string + VariationName string + type FeatureVariation struct + Feature string + Variation string + type FlushPayload struct + EventCount int + PayloadId string + Records []UserEventsBatchRecord + Status string + func (fp *FlushPayload) AddBatchRecordForUser(record UserEventsBatchRecord, chunkSize int) + type OptInColors struct + Primary string + Secondary string + type OptInSettings struct + Colors OptInColors + Description string + Enabled bool + ImageURL string + Title string + type PlatformData struct + DeviceModel string + Hostname string + Platform string + PlatformVersion string + SdkType string + SdkVersion string + func (p PlatformData) Default() *PlatformData + type PopulatedUser struct + CreatedDate time.Time + func (p *PopulatedUser) CombinedCustomData() map[string]interface{} + func (p *PopulatedUser) MergeClientCustomData(ccd map[string]interface{}) + type Project struct + A0OrganizationId string + Id string + Key string + Settings ProjectSettings + type ProjectSettings struct + EdgeDB EdgeDBSettings + OptIn OptInSettings + type ReadOnlyVariable struct + Id string + type User struct + AppBuild string + AppVersion string + Country string + CustomData map[string]interface{} + DeviceModel string + Email string + Language string + LastSeenDate time.Time + Name string + PrivateCustomData map[string]interface{} + UserId string + func (user User) GetPopulatedUser(platformData *PlatformData) PopulatedUser + func (user User) GetPopulatedUserWithTime(platformData *PlatformData, createDate time.Time) PopulatedUser + type UserDataAndEventsBody struct + Events []Event + User *PopulatedUser + type UserEventsBatchRecord struct + Events []Event + User PopulatedUser + type UserFeatureData struct + FeatureVars map[string]string + User User + type Variable struct + DefaultValue interface{} + IsDefaulted bool