summaryrefslogtreecommitdiff
path: root/plugins/gzip/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-16 17:12:37 +0300
committerValery Piashchynski <[email protected]>2021-09-16 17:12:37 +0300
commitf3491c089b4da77fd8d2bc942a88b6b8d117a8a5 (patch)
tree32bfffb1f24eeee7b909747cc00a6a6b9fd3ee83 /plugins/gzip/plugin.go
parent5d2cd55ab522d4f1e65a833f91146444465a32ac (diff)
Move plugins to a separate repository
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/gzip/plugin.go')
-rw-r--r--plugins/gzip/plugin.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/gzip/plugin.go b/plugins/gzip/plugin.go
deleted file mode 100644
index 05f1eb63..00000000
--- a/plugins/gzip/plugin.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package gzip
-
-import (
- "net/http"
-
- "github.com/klauspost/compress/gzhttp"
-)
-
-const PluginName = "gzip"
-
-type Plugin struct{}
-
-func (g *Plugin) Init() error {
- return nil
-}
-
-func (g *Plugin) Middleware(next http.Handler) http.Handler {
- return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- gzhttp.GzipHandler(next).ServeHTTP(w, r)
- })
-}
-
-// Available interface implementation
-func (g *Plugin) Available() {}
-
-func (g *Plugin) Name() string {
- return PluginName
-}