Skip to content

Commit 56cd07b

Browse files
committed
Added fallbacktreatment in configs
1 parent fb2c707 commit 56cd07b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

conf/conf.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ type AdvancedConfig struct {
8989
FlagsSpecVersion string
9090
LargeSegment *LargeSegmentConfig
9191
RulesConfig *RulesConfig
92+
FallbackTreatment FallbackTreatmentConf
9293
}
9394

9495
type LargeSegmentConfig struct {
@@ -105,3 +106,13 @@ type RulesConfig struct {
105106
FeatureFlagRules []string
106107
RuleBasedSegmentRules []string
107108
}
109+
110+
type FallbackTreatmentConf struct {
111+
GlobalFallbackTreatment *FallbackTreatmentForConf
112+
ByFlagFallbackTreatment map[string]FallbackTreatmentForConf
113+
}
114+
115+
type FallbackTreatmentForConf struct {
116+
Treatment string
117+
Config *string
118+
}

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1919
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2020
github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvktgc=
2121
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
22-
github.com/splitio/go-toolkit/v5 v5.4.1-0.20250930172659-38274b802d99 h1:rQo355F9JbdyTMz2X5MU+FeRvkT6rvD1n+GnXdJr33A=
23-
github.com/splitio/go-toolkit/v5 v5.4.1-0.20250930172659-38274b802d99/go.mod h1:SifzysrOVDbzMcOE8zjX02+FG5az4FrR3Us/i5SeStw=
2422
github.com/splitio/go-toolkit/v5 v5.4.1 h1:srTyvDBJZMUcJ/KiiQDMyjCuELVgTBh2TGRVn0sOXEE=
2523
github.com/splitio/go-toolkit/v5 v5.4.1/go.mod h1:SifzysrOVDbzMcOE8zjX02+FG5az4FrR3Us/i5SeStw=
2624
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=

0 commit comments

Comments
 (0)