- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FilterRuleList (0.1 sec)
-
internal/event/config.go
return nil } // FilterRuleList - represents multiple <FilterRule>...</FilterRule> type FilterRuleList struct { Rules []FilterRule `xml:"FilterRule,omitempty"` } // UnmarshalXML - decodes XML data. func (ruleList *FilterRuleList) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { // Make subtype to avoid recursive UnmarshalXML(). type filterRuleList FilterRuleList rules := filterRuleList{}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 8.4K bytes - Viewed (0) -
internal/event/config_test.go
} } } func TestFilterRuleListPattern(t *testing.T) { testCases := []struct { filterRuleList FilterRuleList expectedResult string }{ {FilterRuleList{}, ""}, {FilterRuleList{[]FilterRule{{"prefix", "Hello/世界"}}}, "Hello/世界*"}, {FilterRuleList{[]FilterRule{{"suffix", "foo/bar"}}}, "*foo/bar"}, {FilterRuleList{[]FilterRule{{"prefix", "Hello/世界"}, {"suffix", "foo/bar"}}}, "Hello/世界*foo/bar"}, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 29K bytes - Viewed (0)