mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-08-15 06:48:08 +02:00
23 lines
457 B
Go
23 lines
457 B
Go
package harvester
|
|
|
|
import "github.com/elastic/beats/libbeat/common/match"
|
|
|
|
// Contains available prospector types
|
|
const (
|
|
LogType = "log"
|
|
StdinType = "stdin"
|
|
RedisType = "redis"
|
|
UdpType = "udp"
|
|
DockerType = "docker"
|
|
)
|
|
|
|
// MatchAny checks if the text matches any of the regular expressions
|
|
func MatchAny(matchers []match.Matcher, text string) bool {
|
|
for _, m := range matchers {
|
|
if m.MatchString(text) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|