diff options
-rw-r--r-- | manager.go (renamed from types.go) | 21 |
1 files changed, 6 insertions, 15 deletions
@@ -4,25 +4,16 @@ import ( "fmt" "sync" + "github.com/Shugyousha/stasher/filter" + "github.com/Shugyousha/stasher/input" + "github.com/Shugyousha/stasher/output" "github.com/Shugyousha/stasher/work" ) -type Input interface { - Start() chan *work.Work -} - -type Filter interface { - Filter(*work.Work) *work.Work -} - -type Output interface { - Output(*work.Work) -} - type Manager struct { - Input Input - Filter Filter - Output Output + Input input.Input + Filter filter.Filter + Output output.Output } func (m *Manager) Run() { |