Files
eway/internal/matcher/matcher.go
Aleksandr Trushkin 0c7e94c834 try to abstract matcher
2024-02-10 20:21:55 +03:00

14 lines
288 B
Go

package matcher
type Unit interface {
MatchByPattern(value string) (pattern string)
Match(value string) bool
// Move this to init stage because some of matchers
// might not be applicable to it
RegisterRegexp(regexpPattern string)
Register(pattern string)
Patterns() []string
}