summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/interface.go7
-rw-r--r--input/interface.go7
-rw-r--r--output/interface.go7
3 files changed, 21 insertions, 0 deletions
diff --git a/filter/interface.go b/filter/interface.go
new file mode 100644
index 0000000..83d2dfe
--- /dev/null
+++ b/filter/interface.go
@@ -0,0 +1,7 @@
+package filter
+
+import "github.com/Shugyousha/stasher/work"
+
+type Filter interface {
+ Filter(*work.Work) *work.Work
+}
diff --git a/input/interface.go b/input/interface.go
new file mode 100644
index 0000000..1743249
--- /dev/null
+++ b/input/interface.go
@@ -0,0 +1,7 @@
+package input
+
+import "github.com/Shugyousha/stasher/work"
+
+type Input interface {
+ Start() chan *work.Work
+}
diff --git a/output/interface.go b/output/interface.go
new file mode 100644
index 0000000..c6ee3f6
--- /dev/null
+++ b/output/interface.go
@@ -0,0 +1,7 @@
+package output
+
+import "github.com/Shugyousha/stasher/work"
+
+type Output interface {
+ Output(*work.Work)
+}