Process is where the actual filtering takes place.
(l baker.Record, next func(baker.Record))
| 73 | |
| 74 | // Process is where the actual filtering takes place. |
| 75 | func (f *StringMatch) Process(l baker.Record, next func(baker.Record)) { |
| 76 | if f.isMatchAny(l) == !f.invert { |
| 77 | atomic.AddInt64(&f.discarded, 1) |
| 78 | return |
| 79 | } |
| 80 | |
| 81 | next(l) |
| 82 | } |