From 2eb6ecf4e9d8040bd2a698dbfa80bcd45b0c371e Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sat, 21 Jan 2017 12:34:51 +0100 Subject: Use the registry for filter modules as well --- registry/registry.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'registry') 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) } -- cgit v1.2.3