summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
Diffstat (limited to 'output')
-rw-r--r--output/http/http.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/output/http/http.go b/output/http/http.go
new file mode 100644
index 0000000..9caa1b9
--- /dev/null
+++ b/output/http/http.go
@@ -0,0 +1,24 @@
+package http
+
+import (
+ "fmt"
+
+ "github.com/Shugyousha/stasher/output"
+ "github.com/Shugyousha/stasher/registry"
+ "github.com/Shugyousha/stasher/work"
+)
+
+func init() {
+ registry.Outputregistry["http"] = New
+}
+
+type HttpOutput struct {
+}
+
+func New(map[string]string) output.Output {
+ return &HttpOutput{}
+}
+
+func (h *HttpOutput) Output(w *work.Work) {
+ fmt.Printf("%s\n", w.Data)
+}