aboutsummaryrefslogtreecommitdiff
path: root/internal/monitor/matcher.go
blob: 912e595e375b06ff63c4f17f01923d77ca8e5ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}