summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2017-01-18 18:22:16 +0100
committerSilvan Jegen <s.jegen@gmail.com>2017-01-18 18:22:16 +0100
commit76e2175159ac2ff4b26d2606f4d8f1d7a896c5cc (patch)
tree3864cce33beb8bd851374df2d735831c8cfe3a23
parentc003fdf2182432a25892467bf1a456049f4b1c1d (diff)
Rename file
-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() {