engine: more performance improvements
This commit is contained in:
@@ -85,6 +85,7 @@ func (i StreamInfo) DstString() string {
|
||||
type MatchResult struct {
|
||||
Action Action
|
||||
ModInstance modifier.Instance
|
||||
Logged bool
|
||||
}
|
||||
|
||||
type Ruleset interface {
|
||||
@@ -96,6 +97,10 @@ type Ruleset interface {
|
||||
Match(StreamInfo) MatchResult
|
||||
}
|
||||
|
||||
type LogFinalizer interface {
|
||||
CanFinalizeAfterLog(StreamInfo, []string) bool
|
||||
}
|
||||
|
||||
type Stats struct {
|
||||
MatchCalls uint64
|
||||
MatchErrors uint64
|
||||
|
||||
Reference in New Issue
Block a user