summaryrefslogtreecommitdiff
path: root/plugins/gzip/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gzip/plugin.go')
-rw-r--r--plugins/gzip/plugin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gzip/plugin.go b/plugins/gzip/plugin.go
index eee6c1d3..949c6888 100644
--- a/plugins/gzip/plugin.go
+++ b/plugins/gzip/plugin.go
@@ -8,19 +8,19 @@ import (
const PluginName = "gzip"
-type Gzip struct{}
+type Plugin struct{}
// needed for the Endure
-func (g *Gzip) Init() error {
+func (g *Plugin) Init() error {
return nil
}
-func (g *Gzip) Middleware(next http.Handler) http.HandlerFunc {
+func (g *Plugin) Middleware(next http.Handler) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
gziphandler.GzipHandler(next).ServeHTTP(w, r)
}
}
-func (g *Gzip) Name() string {
+func (g *Plugin) Name() string {
return PluginName
}