From e7677204def8fe8b82a81792afa410a9132e1331 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Fri, 20 Jan 2017 11:27:00 +0100 Subject: Add missed interface files --- filter/interface.go | 7 +++++++ input/interface.go | 7 +++++++ output/interface.go | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 filter/interface.go create mode 100644 input/interface.go create mode 100644 output/interface.go 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) +} -- cgit v1.2.3