From 30716efc96229240cdc1af40ce52d61b0658277b Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 29 Jan 2017 20:14:29 +0100 Subject: Add http output module skeleton --- output/http/http.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 output/http/http.go (limited to 'output/http/http.go') 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) +} -- cgit v1.2.1-18-gbd029