diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-21 03:22:38 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-21 03:22:38 +0800 |
commit | d92fde698031758f64fcabe7af354360a93f6326 (patch) | |
tree | 5f843fe17762e0aa87a0e790d527886f2cc8eea5 /event | |
parent | 499bc404e818848e53c8c7f4f6d1bfe2349e97ae (diff) | |
parent | 87f50659db7a4bf194769b05f541d2ccf02f4fc8 (diff) | |
download | go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.tar go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.tar.gz go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.tar.bz2 go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.tar.lz go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.tar.xz go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.tar.zst go-tangerine-d92fde698031758f64fcabe7af354360a93f6326.zip |
Merge branch 'develop' into jsonrpc
Diffstat (limited to 'event')
-rw-r--r-- | event/filter/filter.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/event/filter/filter.go b/event/filter/filter.go index 9817d5782..ca767f413 100644 --- a/event/filter/filter.go +++ b/event/filter/filter.go @@ -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] +} |