summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--boruta.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/boruta.go b/boruta.go
index 726c9bc..4e48581 100644
--- a/boruta.go
+++ b/boruta.go
@@ -119,7 +119,10 @@ type WorkerInfo struct {
}
// ListFilter is used to filter Requests in the Queue.
-type ListFilter struct{}
+type ListFilter interface {
+ // Match tells if request matches the filter.
+ Match(req *ReqInfo) bool
+}
// Requests defines an interaction of a user with Requests Queue.
type Requests interface {