MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / decisionPredicatesFromStr

Function decisionPredicatesFromStr

pkg/database/decisionfilter.go:197–206  ·  view source on GitHub ↗
(s string, predicateFunc func(string) predicate.Decision)

Source from the content-addressed store, hash-verified

195}
196
197func decisionPredicatesFromStr(s string, predicateFunc func(string) predicate.Decision) []predicate.Decision {
198 words := strings.Split(s, ",")
199 predicates := make([]predicate.Decision, len(words))
200
201 for i, word := range words {
202 predicates[i] = predicateFunc(word)
203 }
204
205 return predicates
206}

Callers 1

applyDecisionFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…