summaryrefslogtreecommitdiff
path: root/cmd/main.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-21 13:25:36 +0300
committerValery Piashchynski <[email protected]>2021-01-21 13:25:36 +0300
commit7da6c78449776e1f3c6716250bca0b712a0423a4 (patch)
treef3512de66aca2bba408485a0ea2fc936c0e4fb9b /cmd/main.go
parent0ff05b2732b4fd0783f959c94c54d7e39169f979 (diff)
Uniform all configs
Add debug server Check nil's for all plugin intialization
Diffstat (limited to 'cmd/main.go')
-rw-r--r--cmd/main.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/main.go b/cmd/main.go
index 56422e82..68d0cadb 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -5,9 +5,10 @@ import (
"github.com/spiral/endure"
"github.com/spiral/roadrunner/v2/cmd/cli"
- "github.com/spiral/roadrunner/v2/plugins/http"
+ httpPlugin "github.com/spiral/roadrunner/v2/plugins/http"
"github.com/spiral/roadrunner/v2/plugins/informer"
+ "github.com/spiral/roadrunner/v2/plugins/kv/boltdb"
"github.com/spiral/roadrunner/v2/plugins/kv/memcached"
"github.com/spiral/roadrunner/v2/plugins/kv/memory"
"github.com/spiral/roadrunner/v2/plugins/logger"
@@ -21,7 +22,7 @@ import (
func main() {
var err error
- cli.Container, err = endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel), endure.RetryOnFail(false))
+ cli.Container, err = endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel), endure.RetryOnFail(false))
if err != nil {
log.Fatal(err)
}
@@ -34,7 +35,7 @@ func main() {
// redis plugin (internal)
&redis.Plugin{},
// http server plugin
- &http.Plugin{},
+ &httpPlugin.Plugin{},
// reload plugin
&reload.Plugin{},
// informer plugin (./rr workers, ./rr workers -i)
@@ -49,6 +50,8 @@ func main() {
&memcached.Plugin{},
// in-memory kv plugin
&memory.Plugin{},
+ // boltdb driver
+ &boltdb.Plugin{},
)
if err != nil {
log.Fatal(err)