diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2017-01-21 12:34:51 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2017-01-21 12:34:51 +0100 |
commit | 2eb6ecf4e9d8040bd2a698dbfa80bcd45b0c371e (patch) | |
tree | 732693efaf7e9c925a79a8cf412ceb2714d98b3c /registry | |
parent | 5c24009f2b1fd5a7e5abd4dc33ebdec0c6eaaf25 (diff) |
Use the registry for filter modules as well
Diffstat (limited to 'registry')
-rw-r--r-- | registry/registry.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/registry/registry.go b/registry/registry.go index 5b285b8..bdf841d 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -2,19 +2,16 @@ package registry import ( "github.com/Shugyousha/stasher/input" + "github.com/Shugyousha/stasher/filter" "github.com/Shugyousha/stasher/work" ) var ( Inputregistry map[string]func(map[string]string) input.Input - Filterregistry map[string]func(map[string]string) Filter + Filterregistry map[string]func(map[string]string) filter.Filter Outputregistry map[string]func(map[string]string) Output ) -type Filter interface { - Filter(*work.Work) *work.Work -} - type Output interface { Output(*work.Work) } |