We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7474e1 commit 6e82128Copy full SHA for 6e82128
app/router/condition.go
@@ -39,31 +39,6 @@ func (v *ConditionChan) Len() int {
39
return len(*v)
40
}
41
42
-type AnyCondition []Condition
43
-
44
-func NewAnyCondition() *AnyCondition {
45
- var anyCond AnyCondition = make([]Condition, 0, 8)
46
- return &anyCond
47
-}
48
49
-func (v *AnyCondition) Add(cond Condition) *AnyCondition {
50
- *v = append(*v, cond)
51
- return v
52
53
54
-func (v *AnyCondition) Apply(ctx context.Context) bool {
55
- for _, cond := range *v {
56
- if cond.Apply(ctx) {
57
- return true
58
- }
59
60
- return false
61
62
63
-func (v *AnyCondition) Len() int {
64
- return len(*v)
65
66
67
var matcherTypeMap = map[Domain_Type]strmatcher.Type{
68
Domain_Plain: strmatcher.Substr,
69
Domain_Regex: strmatcher.Regex,
0 commit comments