summaryrefslogtreecommitdiff
path: root/plugins/http/handler.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-25 21:56:26 +0300
committerValery Piashchynski <[email protected]>2020-11-25 21:56:26 +0300
commit1b0b033bcf4969e401b0c34b82171aa0b60b12cf (patch)
tree9cfe13b67613e69140bf29d320a1754cf2f7c9b7 /plugins/http/handler.go
parent2918cfca6d9579125257bfc9f5655537a63ec82a (diff)
Add mock logger, test for errors in log
Diffstat (limited to 'plugins/http/handler.go')
-rw-r--r--plugins/http/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/handler.go b/plugins/http/handler.go
index f770a401..74b038ff 100644
--- a/plugins/http/handler.go
+++ b/plugins/http/handler.go
@@ -23,7 +23,7 @@ const (
EventError
)
-type Handler interface {
+type Handle interface {
AddListener(l util.EventListener)
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
@@ -76,7 +76,7 @@ type handler struct {
lsn util.EventListener
}
-func NewHandler(maxReqSize uint64, uploads UploadsConfig, trusted Cidrs, pool roadrunner.Pool) (Handler, error) {
+func NewHandler(maxReqSize uint64, uploads UploadsConfig, trusted Cidrs, pool roadrunner.Pool) (Handle, error) {
if pool == nil {
return nil, errors.E(errors.Str("pool should be initialized"))
}