diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/bathroom.go b/mattermost/server/bathroom.go new file mode 100644 index 0000000..05f8544 --- /dev/null +++ b/mattermost/server/bathroom.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/mattermost/mattermost-server/plugin" +) + +type HelloWorldPlugin struct { + plugin.MattermostPlugin +} + +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, world!") +} + +// This example demonstrates a plugin that handles HTTP requests which respond by greeting the +// world. +func main() { + plugin.ClientMain(&HelloWorldPlugin{}) +} diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/bathroom.go b/mattermost/server/bathroom.go new file mode 100644 index 0000000..05f8544 --- /dev/null +++ b/mattermost/server/bathroom.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/mattermost/mattermost-server/plugin" +) + +type HelloWorldPlugin struct { + plugin.MattermostPlugin +} + +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, world!") +} + +// This example demonstrates a plugin that handles HTTP requests which respond by greeting the +// world. +func main() { + plugin.ClientMain(&HelloWorldPlugin{}) +} diff --git a/mattermost/server/build.sh b/mattermost/server/build.sh new file mode 100755 index 0000000..161a39f --- /dev/null +++ b/mattermost/server/build.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env bash + +GOOS=linux GOARCH=amd64 go build -o bathroom-linux-amd64 bathroom.go diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/bathroom.go b/mattermost/server/bathroom.go new file mode 100644 index 0000000..05f8544 --- /dev/null +++ b/mattermost/server/bathroom.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/mattermost/mattermost-server/plugin" +) + +type HelloWorldPlugin struct { + plugin.MattermostPlugin +} + +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, world!") +} + +// This example demonstrates a plugin that handles HTTP requests which respond by greeting the +// world. +func main() { + plugin.ClientMain(&HelloWorldPlugin{}) +} diff --git a/mattermost/server/build.sh b/mattermost/server/build.sh new file mode 100755 index 0000000..161a39f --- /dev/null +++ b/mattermost/server/build.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env bash + +GOOS=linux GOARCH=amd64 go build -o bathroom-linux-amd64 bathroom.go diff --git a/mattermost/server/plugin-linux-amd64 b/mattermost/server/plugin-linux-amd64 deleted file mode 100644 index 5cde222..0000000 --- a/mattermost/server/plugin-linux-amd64 +++ /dev/null Binary files differ diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/bathroom.go b/mattermost/server/bathroom.go new file mode 100644 index 0000000..05f8544 --- /dev/null +++ b/mattermost/server/bathroom.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/mattermost/mattermost-server/plugin" +) + +type HelloWorldPlugin struct { + plugin.MattermostPlugin +} + +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, world!") +} + +// This example demonstrates a plugin that handles HTTP requests which respond by greeting the +// world. +func main() { + plugin.ClientMain(&HelloWorldPlugin{}) +} diff --git a/mattermost/server/build.sh b/mattermost/server/build.sh new file mode 100755 index 0000000..161a39f --- /dev/null +++ b/mattermost/server/build.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env bash + +GOOS=linux GOARCH=amd64 go build -o bathroom-linux-amd64 bathroom.go diff --git a/mattermost/server/plugin-linux-amd64 b/mattermost/server/plugin-linux-amd64 deleted file mode 100644 index 5cde222..0000000 --- a/mattermost/server/plugin-linux-amd64 +++ /dev/null Binary files differ diff --git a/mattermost/server/plugin.go b/mattermost/server/plugin.go deleted file mode 100644 index 05f8544..0000000 --- a/mattermost/server/plugin.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "fmt" - "net/http" - - "github.com/mattermost/mattermost-server/plugin" -) - -type HelloWorldPlugin struct { - plugin.MattermostPlugin -} - -func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { - fmt.Fprint(w, "Hello, world!") -} - -// This example demonstrates a plugin that handles HTTP requests which respond by greeting the -// world. -func main() { - plugin.ClientMain(&HelloWorldPlugin{}) -} diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/bathroom.go b/mattermost/server/bathroom.go new file mode 100644 index 0000000..05f8544 --- /dev/null +++ b/mattermost/server/bathroom.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/mattermost/mattermost-server/plugin" +) + +type HelloWorldPlugin struct { + plugin.MattermostPlugin +} + +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, world!") +} + +// This example demonstrates a plugin that handles HTTP requests which respond by greeting the +// world. +func main() { + plugin.ClientMain(&HelloWorldPlugin{}) +} diff --git a/mattermost/server/build.sh b/mattermost/server/build.sh new file mode 100755 index 0000000..161a39f --- /dev/null +++ b/mattermost/server/build.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env bash + +GOOS=linux GOARCH=amd64 go build -o bathroom-linux-amd64 bathroom.go diff --git a/mattermost/server/plugin-linux-amd64 b/mattermost/server/plugin-linux-amd64 deleted file mode 100644 index 5cde222..0000000 --- a/mattermost/server/plugin-linux-amd64 +++ /dev/null Binary files differ diff --git a/mattermost/server/plugin.go b/mattermost/server/plugin.go deleted file mode 100644 index 05f8544..0000000 --- a/mattermost/server/plugin.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "fmt" - "net/http" - - "github.com/mattermost/mattermost-server/plugin" -) - -type HelloWorldPlugin struct { - plugin.MattermostPlugin -} - -func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { - fmt.Fprint(w, "Hello, world!") -} - -// This example demonstrates a plugin that handles HTTP requests which respond by greeting the -// world. -func main() { - plugin.ClientMain(&HelloWorldPlugin{}) -} diff --git a/mattermost/server/plugin.tar.gz b/mattermost/server/plugin.tar.gz deleted file mode 100644 index 1daac64..0000000 --- a/mattermost/server/plugin.tar.gz +++ /dev/null Binary files differ diff --git a/mattermost/server/.gitignore b/mattermost/server/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/mattermost/server/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/mattermost/server/bathroom-linux-amd64 b/mattermost/server/bathroom-linux-amd64 new file mode 100755 index 0000000..ff8c417 --- /dev/null +++ b/mattermost/server/bathroom-linux-amd64 Binary files differ diff --git a/mattermost/server/bathroom.go b/mattermost/server/bathroom.go new file mode 100644 index 0000000..05f8544 --- /dev/null +++ b/mattermost/server/bathroom.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/mattermost/mattermost-server/plugin" +) + +type HelloWorldPlugin struct { + plugin.MattermostPlugin +} + +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, world!") +} + +// This example demonstrates a plugin that handles HTTP requests which respond by greeting the +// world. +func main() { + plugin.ClientMain(&HelloWorldPlugin{}) +} diff --git a/mattermost/server/build.sh b/mattermost/server/build.sh new file mode 100755 index 0000000..161a39f --- /dev/null +++ b/mattermost/server/build.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env bash + +GOOS=linux GOARCH=amd64 go build -o bathroom-linux-amd64 bathroom.go diff --git a/mattermost/server/plugin-linux-amd64 b/mattermost/server/plugin-linux-amd64 deleted file mode 100644 index 5cde222..0000000 --- a/mattermost/server/plugin-linux-amd64 +++ /dev/null Binary files differ diff --git a/mattermost/server/plugin.go b/mattermost/server/plugin.go deleted file mode 100644 index 05f8544..0000000 --- a/mattermost/server/plugin.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "fmt" - "net/http" - - "github.com/mattermost/mattermost-server/plugin" -) - -type HelloWorldPlugin struct { - plugin.MattermostPlugin -} - -func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { - fmt.Fprint(w, "Hello, world!") -} - -// This example demonstrates a plugin that handles HTTP requests which respond by greeting the -// world. -func main() { - plugin.ClientMain(&HelloWorldPlugin{}) -} diff --git a/mattermost/server/plugin.tar.gz b/mattermost/server/plugin.tar.gz deleted file mode 100644 index 1daac64..0000000 --- a/mattermost/server/plugin.tar.gz +++ /dev/null Binary files differ diff --git a/mattermost/server/setup.sh b/mattermost/server/setup.sh new file mode 100755 index 0000000..db2f519 --- /dev/null +++ b/mattermost/server/setup.sh @@ -0,0 +1,5 @@ +#! /usr/bin/env bash + +go get -u github.com/mattermost/mattermost-server +go get -u golang.org/x/sys/... +go get -u github.com/fsnotify/fsnotify