14 lines
288 B
Go
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
|
|
}
|