Added manual triggering of filters

This commit is contained in:
obscuren
2015-01-12 20:36:45 +01:00
parent 8a1b51c716
commit 34689cb3f3
5 changed files with 51 additions and 9 deletions

View File

@ -68,3 +68,11 @@ out:
}
}
}
func (self *Filters) Match(a, b Filter) bool {
return reflect.TypeOf(a) == reflect.TypeOf(b) && a.Compare(b)
}
func (self *Filters) Get(i int) Filter {
return self.watchers[i]
}