Versions in this module Expand all Collapse all v2 v2.1.0 Nov 8, 2024 v2.0.0 Jan 22, 2024 Changes in this version + type Attribute struct + ID string + Key string + type Audience struct + ConditionTree *TreeNode + Conditions interface{} + ID string + Name string + type Condition struct + Match string + Name string + StringRepresentation string + Type string + Value interface{} + type Event struct + ExperimentIds []string + ID string + Key string + type Experiment struct + AudienceConditionTree *TreeNode + AudienceConditions interface{} + AudienceIds []string + GroupID string + ID string + IsFeatureExperiment bool + Key string + LayerID string + TrafficAllocation []Range + VariationKeyToIDMap map[string]string + Variations map[string]Variation + Whitelist map[string]string + type Feature struct + ExperimentIDs []string + FeatureExperiments []Experiment + ID string + Key string + Rollout Rollout + VariableMap map[string]Variable + type Group struct + ID string + Policy string + TrafficAllocation []Range + type Integration struct + Host string + Key string + PublicKey string + type Range struct + EndOfRange int + EntityID string + type Rollout struct + Experiments []Experiment + ID string + type TreeNode struct + Item interface{} + Nodes []*TreeNode + Operator string + type TreeParameters struct + AudienceMap map[string]Audience + User *UserContext + func NewTreeParameters(user *UserContext, audience map[string]Audience) *TreeParameters + type UserContext struct + Attributes map[string]interface{} + ID string + QualifiedSegments []string + func (u *UserContext) IsQualifiedFor(segment string) bool + func (u UserContext) CheckAttributeExists(attrName string) bool + func (u UserContext) GetAttribute(attrName string) (interface{}, error) + func (u UserContext) GetBoolAttribute(attrName string) (bool, error) + func (u UserContext) GetBucketingID() (string, error) + func (u UserContext) GetFloatAttribute(attrName string) (float64, error) + func (u UserContext) GetIntAttribute(attrName string) (int64, error) + func (u UserContext) GetStringAttribute(attrName string) (string, error) + type Variable struct + DefaultValue string + ID string + Key string + Type VariableType + type VariableType string + const Boolean + const Double + const Integer + const JSON + const String + type Variation struct + FeatureEnabled bool + ID string + Key string + Variables map[string]VariationVariable + type VariationVariable struct + ID string + Value string Other modules containing this package github.com/optimizely/go-sdk