diff options
Diffstat (limited to 'internal/monitor/matcher.go')
-rw-r--r-- | internal/monitor/matcher.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/monitor/matcher.go b/internal/monitor/matcher.go new file mode 100644 index 0000000..912e595 --- /dev/null +++ b/internal/monitor/matcher.go @@ -0,0 +1,13 @@ +package monitor + +type Matcher interface { + // Match determines if a log entry is considered to be a "match" based on + // some criteria. An error is returned if any certificate parsing fails. + Match(leafInput, extraData []byte) (bool, error) +} + +type MatchAll struct{} + +func (m *MatchAll) Match(leafInput, extraData []byte) (bool, error) { + return true, nil +} |