summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/rsc/blog/post/qr.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-16 05:37:14 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-04-16 08:37:14 -0400
commit6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch)
tree3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/github.com/mattermost/rsc/blog/post/qr.go
parentbf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff)
downloadchat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/github.com/mattermost/rsc/blog/post/qr.go')
-rw-r--r--vendor/github.com/mattermost/rsc/blog/post/qr.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/vendor/github.com/mattermost/rsc/blog/post/qr.go b/vendor/github.com/mattermost/rsc/blog/post/qr.go
deleted file mode 100644
index a1a03fdbf..000000000
--- a/vendor/github.com/mattermost/rsc/blog/post/qr.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package post
-
-import (
- "fmt"
- "net/http"
- "runtime/debug"
-
- qrweb "github.com/mattermost/rsc/qr/web"
-)
-
-func carp(f http.HandlerFunc) http.Handler {
- return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
- defer func() {
- if err := recover(); err != nil {
- w.Header().Set("Content-Type", "text/plain")
- fmt.Fprintf(w, "<pre>\npanic: %s\n\n%s\n", err, debug.Stack())
- }
- }()
- f.ServeHTTP(w, req)
- })
-}
-
-func init() {
- // http.Handle("/qr/bits", carp(qrweb.Bits))
- http.Handle("/qr/frame", carp(qrweb.Frame))
- http.Handle("/qr/frames", carp(qrweb.Frames))
- http.Handle("/qr/mask", carp(qrweb.Mask))
- http.Handle("/qr/masks", carp(qrweb.Masks))
- http.Handle("/qr/arrow", carp(qrweb.Arrow))
- http.Handle("/qr/draw", carp(qrweb.Draw))
- http.Handle("/qr/bitstable", carp(qrweb.BitsTable))
- http.Handle("/qr/encode", carp(qrweb.Encode))
- http.Handle("/qr/show/", carp(qrweb.Show))
-}