Versions in this module Expand all Collapse all v3 v3.0.1 Aug 28, 2024 v3.0.0 Oct 11, 2023 Changes in this version + func MarshalFeatureFlagToJSONWriter(item FeatureFlag, writer *jwriter.Writer) + func MarshalSegmentToJSONWriter(item Segment, writer *jwriter.Writer) + func PreprocessFlag(f *FeatureFlag) + func PreprocessSegment(s *Segment) + type Clause struct + Attribute ldattr.Ref + ContextKind ldcontext.Kind + Negate bool + Op Operator + Values []ldvalue.Value + type ClientSideAvailability struct + Explicit bool + UsingEnvironmentID bool + UsingMobileKey bool + type DataModelSerialization interface + MarshalFeatureFlag func(item FeatureFlag) ([]byte, error) + MarshalSegment func(item Segment) ([]byte, error) + UnmarshalFeatureFlag func(data []byte) (FeatureFlag, error) + UnmarshalSegment func(data []byte) (Segment, error) + func NewJSONDataModelSerialization() DataModelSerialization + type EvaluatorAccessorMethods struct + var EvaluatorAccessors EvaluatorAccessorMethods + func (e EvaluatorAccessorMethods) ClauseFindValue(clause *Clause, contextValue ldvalue.Value) bool + func (e EvaluatorAccessorMethods) ClauseGetValueAsRegexp(clause *Clause, index int) *regexp.Regexp + func (e EvaluatorAccessorMethods) ClauseGetValueAsSemanticVersion(clause *Clause, index int) (semver.Version, bool) + func (e EvaluatorAccessorMethods) ClauseGetValueAsTimestamp(clause *Clause, index int) (time.Time, bool) + func (e EvaluatorAccessorMethods) SegmentFindKeyInExcluded(segment *Segment, key string) bool + func (e EvaluatorAccessorMethods) SegmentFindKeyInIncluded(segment *Segment, key string) bool + func (e EvaluatorAccessorMethods) SegmentTargetFindKey(target *SegmentTarget, key string) bool + func (e EvaluatorAccessorMethods) TargetFindKey(target *Target, key string) bool + type FeatureFlag struct + ClientSideAvailability ClientSideAvailability + ContextTargets []Target + DebugEventsUntilDate ldtime.UnixMillisecondTime + Deleted bool + ExcludeFromSummaries bool + Fallthrough VariationOrRollout + Key string + Migration *MigrationFlagParameters + OffVariation ldvalue.OptionalInt + On bool + Prerequisites []Prerequisite + Rules []FlagRule + Salt string + SamplingRatio ldvalue.OptionalInt + Targets []Target + TrackEvents bool + TrackEventsFallthrough bool + Variations []ldvalue.Value + Version int + func UnmarshalFeatureFlagFromJSONReader(reader *jreader.Reader) FeatureFlag + func (f *FeatureFlag) UnmarshalJSON(data []byte) error + func (f FeatureFlag) MarshalJSON() ([]byte, error) + type FlagRule struct + Clauses []Clause + ID string + TrackEvents bool + type MigrationFlagParameters struct + CheckRatio ldvalue.OptionalInt + type Operator string + const OperatorAfter + const OperatorBefore + const OperatorContains + const OperatorEndsWith + const OperatorGreaterThan + const OperatorGreaterThanOrEqual + const OperatorIn + const OperatorLessThan + const OperatorLessThanOrEqual + const OperatorMatches + const OperatorSegmentMatch + const OperatorSemVerEqual + const OperatorSemVerGreaterThan + const OperatorSemVerLessThan + const OperatorStartsWith + type Prerequisite struct + Key string + Variation int + type Rollout struct + BucketBy ldattr.Ref + ContextKind ldcontext.Kind + Kind RolloutKind + Seed ldvalue.OptionalInt + Variations []WeightedVariation + func (r Rollout) IsExperiment() bool + type RolloutKind string + const RolloutKindExperiment + const RolloutKindRollout + type Segment struct + Deleted bool + Excluded []string + ExcludedContexts []SegmentTarget + Generation ldvalue.OptionalInt + Included []string + IncludedContexts []SegmentTarget + Key string + Rules []SegmentRule + Salt string + Unbounded bool + UnboundedContextKind ldcontext.Kind + Version int + func UnmarshalSegmentFromJSONReader(reader *jreader.Reader) Segment + func (s *Segment) UnmarshalJSON(data []byte) error + func (s Segment) MarshalJSON() ([]byte, error) + type SegmentRule struct + BucketBy ldattr.Ref + Clauses []Clause + ID string + RolloutContextKind ldcontext.Kind + Weight ldvalue.OptionalInt + type SegmentTarget struct + ContextKind ldcontext.Kind + Values []string + type Target struct + ContextKind ldcontext.Kind + Values []string + Variation int + type TypeConversionMethods struct + var TypeConversions TypeConversionMethods + func (e TypeConversionMethods) ValueToSemanticVersion(value ldvalue.Value) (semver.Version, bool) + func (e TypeConversionMethods) ValueToTimestamp(value ldvalue.Value) (time.Time, bool) + type VariationOrRollout struct + Rollout Rollout + Variation ldvalue.OptionalInt + type WeightedVariation struct + Untracked bool + Variation int + Weight int Other modules containing this package github.com/launchdarkly/go-server-sdk-evaluation/v2