Versions in this module Expand all Collapse all v5 v5.0.0 Dec 2, 2025 Changes in this version + func IsContextInSegment(ec *EngineEvaluationContext, segmentContext *SegmentContext) bool + func MapEvaluationResultSegmentsToSegmentModels(result *EvaluationResult) []*segments.SegmentModel + func ToString(contextValue ContextValue) string + type Comparable interface + type Condition struct + Operator Operator + Property string + Value any + type ContextValue interface + type EngineEvaluationContext struct + Environment EnvironmentContext + Features map[string]FeatureContext + Identity *IdentityContext + Segments map[string]SegmentContext + func MapContextAndIdentityDataToContext(context EngineEvaluationContext, identifier string, traits []*trait.Trait) EngineEvaluationContext + func MapEnvironmentDocumentToEvaluationContext(env *environments.EnvironmentModel) EngineEvaluationContext + type EnvironmentContext struct + Key string + Name string + type EvaluationResult struct + Flags map[string]*FlagResult + Segments []SegmentResult + type FeatureContext struct + Enabled bool + Key string + Metadata FeatureMetadata + Name string + Priority *float64 + Value any + Variants []FeatureValue + type FeatureMetadata struct + FeatureID int + type FeatureValue struct + Priority big.Int + Value any + Weight float64 + type FlagResult struct + Enabled bool + Metadata FeatureMetadata + Name string + Reason string + Value any + type FlexibleString string + func (f *FlexibleString) UnmarshalJSON(data []byte) error + type IdentityContext struct + Identifier string + Key string + Traits map[string]any + func (ic *IdentityContext) UnmarshalJSON(data []byte) error + type Operator string + const Contains + const Equal + const GreaterThan + const GreaterThanInclusive + const In + const IsNotSet + const IsSet + const LessThan + const LessThanInclusive + const Modulo + const NotContains + const NotEqual + const PercentageSplit + const Regex + type Ordered interface + type SegmentContext struct + Key string + Metadata SegmentMetadata + Name string + Overrides []FeatureContext + Rules []SegmentRule + type SegmentMetadata struct + SegmentID int + Source SegmentSource + type SegmentResult struct + Metadata SegmentMetadata + Name string + type SegmentRule struct + Conditions []Condition + Rules []SegmentRule + Type Type + type SegmentSource string + const SegmentSourceAPI + const SegmentSourceIdentityOverride + type Trait = trait.Trait + type Type string + const All + const Any + const None