Versions in this module Expand all Collapse all v2 v2.0.1 Apr 29, 2021 Changes in this version + var BOOLEAN string = "BOOLEAN" + var NUMERIC string = "NUMERIC" + var STRING string = "STRING" + func SetCache(featureMap map[string]Feature, propertyMap map[string]Property, ...) + type Cache struct + FeatureMap map[string]Feature + PropertyMap map[string]Property + SegmentMap map[string]Segment + var CacheInstance *Cache + func GetCacheInstance() *Cache + type Collection struct + Collection_id string + Name string + type ConfigResponse struct + Collection Collection + Features []Feature + Properties []Property + Segments []Segment + type Feature struct + DataType string + Disabled_value interface{} + Enabled bool + Enabled_value interface{} + Feature_id string + Name string + Segment_rules []SegmentRule + func (f *Feature) GetCurrentValue(id string, identity map[string]interface{}) interface{} + func (f *Feature) GetDisabledValue() interface{} + func (f *Feature) GetEnabledValue() interface{} + func (f *Feature) GetFeatureDataType() string + func (f *Feature) GetFeatureId() string + func (f *Feature) GetFeatureName() string + func (f *Feature) GetSegmentRules() []SegmentRule + func (f *Feature) IsEnabled() bool + type Property struct + DataType string + Name string + Property_id string + Segment_rules []SegmentRule + Value interface{} + func (f *Property) GetCurrentValue(id string, identity map[string]interface{}) interface{} + func (f *Property) GetPropertyDataType() string + func (f *Property) GetPropertyId() string + func (f *Property) GetPropertyName() string + func (f *Property) GetSegmentRules() []SegmentRule + func (f *Property) GetValue() interface{} + type Rule struct + Attribute_Name string + Operator string + Values []interface{} + func (r *Rule) EvaluateRule(identity map[string]interface{}) bool + func (r *Rule) GetAttributeName() string + func (r *Rule) GetOperator() string + func (r *Rule) GetValues() []interface{} + type RuleElem struct + Segments []string + type Segment struct + Name string + Rules []Rule + Segment_id string + func (s *Segment) EvaluateRule(identity map[string]interface{}) bool + func (s *Segment) GetName() string + func (s *Segment) GetRules() []Rule + func (s *Segment) GetSegmentId() string + type SegmentRule struct + Order int + Rules []RuleElem + Value interface{} + func (sr *SegmentRule) GetOrder() int + func (sr *SegmentRule) GetRules() []RuleElem + func (sr *SegmentRule) GetValue() interface{}