summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manager.go (renamed from types.go)21
1 files changed, 6 insertions, 15 deletions
diff --git a/types.go b/manager.go
index abd2658..3fd2234 100644
--- a/types.go
+++ b/manager.go
@@ -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() {