summaryrefslogtreecommitdiff
path: root/plugins/http/tests
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-21 14:27:27 +0300
committerGitHub <[email protected]>2020-12-21 14:27:27 +0300
commit0ad45031047bb479e06ce0a0f496c6db9b2641c9 (patch)
tree26f4b6e453739bc8e0e4fe26f05b899f5d3a5cce /plugins/http/tests
parent8543980775e5f8b12e5e200a0764052cdb4350a5 (diff)
parent960395df42b379c55c095dbed2378bfe20869c83 (diff)
Merge pull request #459 from spiral/plugin/redisv2.0.0-alpha26
plugin/redis [reopen]
Diffstat (limited to 'plugins/http/tests')
-rw-r--r--plugins/http/tests/plugin1.go6
-rw-r--r--plugins/http/tests/plugin_middleware.go10
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/http/tests/plugin1.go b/plugins/http/tests/plugin1.go
index 7d1f32a1..7e5c03da 100644
--- a/plugins/http/tests/plugin1.go
+++ b/plugins/http/tests/plugin1.go
@@ -1,14 +1,14 @@
package tests
import (
- config2 "github.com/spiral/roadrunner/v2/interfaces/config"
+ "github.com/spiral/roadrunner/v2/interfaces/config"
)
type Plugin1 struct {
- config config2.Configurer
+ config config.Configurer
}
-func (p1 *Plugin1) Init(cfg config2.Configurer) error {
+func (p1 *Plugin1) Init(cfg config.Configurer) error {
p1.config = cfg
return nil
}
diff --git a/plugins/http/tests/plugin_middleware.go b/plugins/http/tests/plugin_middleware.go
index 224d4117..9003c0ad 100644
--- a/plugins/http/tests/plugin_middleware.go
+++ b/plugins/http/tests/plugin_middleware.go
@@ -3,14 +3,14 @@ package tests
import (
"net/http"
- config2 "github.com/spiral/roadrunner/v2/interfaces/config"
+ "github.com/spiral/roadrunner/v2/interfaces/config"
)
type PluginMiddleware struct {
- config config2.Configurer
+ config config.Configurer
}
-func (p *PluginMiddleware) Init(cfg config2.Configurer) error {
+func (p *PluginMiddleware) Init(cfg config.Configurer) error {
p.config = cfg
return nil
}
@@ -34,10 +34,10 @@ func (p *PluginMiddleware) Name() string {
}
type PluginMiddleware2 struct {
- config config2.Configurer
+ config config.Configurer
}
-func (p *PluginMiddleware2) Init(cfg config2.Configurer) error {
+func (p *PluginMiddleware2) Init(cfg config.Configurer) error {
p.config = cfg
return nil
}