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 Bucket(variationIndex int, weight int) ldmodel.WeightedVariation + func BucketUntracked(variationIndex int, weight int) ldmodel.WeightedVariation + func Clause(attr string, op ldmodel.Operator, values ...ldvalue.Value) ldmodel.Clause + func ClauseRef(attrRef ldattr.Ref, op ldmodel.Operator, values ...ldvalue.Value) ldmodel.Clause + func ClauseRefWithKind(contextKind ldcontext.Kind, attrRef ldattr.Ref, op ldmodel.Operator, ...) ldmodel.Clause + func ClauseWithKind(contextKind ldcontext.Kind, attr string, op ldmodel.Operator, ...) ldmodel.Clause + func Experiment(seed ldvalue.OptionalInt, buckets ...ldmodel.WeightedVariation) ldmodel.VariationOrRollout + func Negate(c ldmodel.Clause) ldmodel.Clause + func Rollout(buckets ...ldmodel.WeightedVariation) ldmodel.VariationOrRollout + func SegmentMatchClause(segmentKeys ...string) ldmodel.Clause + func Variation(variationIndex int) ldmodel.VariationOrRollout + type FlagBuilder struct + func NewFlagBuilder(key string) *FlagBuilder + func (b *FlagBuilder) AddContextTarget(kind ldcontext.Kind, variationIndex int, keys ...string) *FlagBuilder + func (b *FlagBuilder) AddPrerequisite(key string, variationIndex int) *FlagBuilder + func (b *FlagBuilder) AddRule(r *RuleBuilder) *FlagBuilder + func (b *FlagBuilder) AddTarget(variationIndex int, keys ...string) *FlagBuilder + func (b *FlagBuilder) Build() ldmodel.FeatureFlag + func (b *FlagBuilder) ClientSideUsingEnvironmentID(value bool) *FlagBuilder + func (b *FlagBuilder) ClientSideUsingMobileKey(value bool) *FlagBuilder + func (b *FlagBuilder) DebugEventsUntilDate(t ldtime.UnixMillisecondTime) *FlagBuilder + func (b *FlagBuilder) Deleted(value bool) *FlagBuilder + func (b *FlagBuilder) ExcludeFromSummaries(value bool) *FlagBuilder + func (b *FlagBuilder) Fallthrough(vr ldmodel.VariationOrRollout) *FlagBuilder + func (b *FlagBuilder) FallthroughVariation(variationIndex int) *FlagBuilder + func (b *FlagBuilder) MigrationFlagParameters(parameters ldmodel.MigrationFlagParameters) *FlagBuilder + func (b *FlagBuilder) OffVariation(variationIndex int) *FlagBuilder + func (b *FlagBuilder) On(value bool) *FlagBuilder + func (b *FlagBuilder) Salt(value string) *FlagBuilder + func (b *FlagBuilder) SamplingRatio(samplingRatio int) *FlagBuilder + func (b *FlagBuilder) SingleVariation(value ldvalue.Value) *FlagBuilder + func (b *FlagBuilder) TrackEvents(value bool) *FlagBuilder + func (b *FlagBuilder) TrackEventsFallthrough(value bool) *FlagBuilder + func (b *FlagBuilder) Variations(values ...ldvalue.Value) *FlagBuilder + func (b *FlagBuilder) Version(value int) *FlagBuilder + type MigrationFlagParametersBuilder struct + func NewMigrationFlagParametersBuilder() *MigrationFlagParametersBuilder + func (b *MigrationFlagParametersBuilder) Build() ldmodel.MigrationFlagParameters + func (b *MigrationFlagParametersBuilder) CheckRatio(ratio int) *MigrationFlagParametersBuilder + type RuleBuilder struct + func NewRuleBuilder() *RuleBuilder + func (b *RuleBuilder) Build() ldmodel.FlagRule + func (b *RuleBuilder) Clauses(clauses ...ldmodel.Clause) *RuleBuilder + func (b *RuleBuilder) ID(id string) *RuleBuilder + func (b *RuleBuilder) TrackEvents(value bool) *RuleBuilder + func (b *RuleBuilder) Variation(variationIndex int) *RuleBuilder + func (b *RuleBuilder) VariationOrRollout(vr ldmodel.VariationOrRollout) *RuleBuilder + type SegmentBuilder struct + func NewSegmentBuilder(key string) *SegmentBuilder + func (b *SegmentBuilder) AddRule(r *SegmentRuleBuilder) *SegmentBuilder + func (b *SegmentBuilder) Build() ldmodel.Segment + func (b *SegmentBuilder) Excluded(keys ...string) *SegmentBuilder + func (b *SegmentBuilder) ExcludedContextKind(kind ldcontext.Kind, keys ...string) *SegmentBuilder + func (b *SegmentBuilder) Generation(value int) *SegmentBuilder + func (b *SegmentBuilder) Included(keys ...string) *SegmentBuilder + func (b *SegmentBuilder) IncludedContextKind(kind ldcontext.Kind, keys ...string) *SegmentBuilder + func (b *SegmentBuilder) Salt(value string) *SegmentBuilder + func (b *SegmentBuilder) Unbounded(value bool) *SegmentBuilder + func (b *SegmentBuilder) UnboundedContextKind(kind ldcontext.Kind) *SegmentBuilder + func (b *SegmentBuilder) Version(value int) *SegmentBuilder + type SegmentRuleBuilder struct + func NewSegmentRuleBuilder() *SegmentRuleBuilder + func (b *SegmentRuleBuilder) BucketBy(attr string) *SegmentRuleBuilder + func (b *SegmentRuleBuilder) BucketByRef(attr ldattr.Ref) *SegmentRuleBuilder + func (b *SegmentRuleBuilder) Build() ldmodel.SegmentRule + func (b *SegmentRuleBuilder) Clauses(clauses ...ldmodel.Clause) *SegmentRuleBuilder + func (b *SegmentRuleBuilder) ID(id string) *SegmentRuleBuilder + func (b *SegmentRuleBuilder) RolloutContextKind(kind ldcontext.Kind) *SegmentRuleBuilder + func (b *SegmentRuleBuilder) Weight(value int) *SegmentRuleBuilder Other modules containing this package github.com/launchdarkly/go-server-sdk-evaluation/v2