summaryrefslogtreecommitdiff
path: root/cmd/main.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-27 14:36:00 +0300
committerGitHub <[email protected]>2021-01-27 14:36:00 +0300
commitb65bd870e2dfa1cb06d8cf8f142c34a418e9ae56 (patch)
tree5cb263c5f231ab1683010adda5a2f116da1d2815 /cmd/main.go
parent7ac2fe05d1d460e9a7f92e8838ac1670743bc2d8 (diff)
parent6dd131497808f414ac1cb952d4b0b89b9e0689f8 (diff)
Merge branch 'master' into dependabot/go_modules/github.com/go-redis/redis/v8-8.4.11
Diffstat (limited to 'cmd/main.go')
-rw-r--r--cmd/main.go69
1 files changed, 0 insertions, 69 deletions
diff --git a/cmd/main.go b/cmd/main.go
deleted file mode 100644
index 8074f316..00000000
--- a/cmd/main.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package main
-
-import (
- "log"
-
- endure "github.com/spiral/endure/pkg/container"
- "github.com/spiral/roadrunner/v2/cmd/cli"
- httpPlugin "github.com/spiral/roadrunner/v2/plugins/http"
- "github.com/spiral/roadrunner/v2/plugins/informer"
- "github.com/spiral/roadrunner/v2/plugins/temporal/activity"
- temporalClient "github.com/spiral/roadrunner/v2/plugins/temporal/client"
- "github.com/spiral/roadrunner/v2/plugins/temporal/workflow"
-
- "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"
- "github.com/spiral/roadrunner/v2/plugins/metrics"
- "github.com/spiral/roadrunner/v2/plugins/redis"
- "github.com/spiral/roadrunner/v2/plugins/reload"
- "github.com/spiral/roadrunner/v2/plugins/resetter"
- "github.com/spiral/roadrunner/v2/plugins/rpc"
- "github.com/spiral/roadrunner/v2/plugins/server"
-)
-
-func main() {
- var err error
- cli.Container, err = endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel), endure.RetryOnFail(false))
- if err != nil {
- log.Fatal(err)
- }
-
- err = cli.Container.RegisterAll(
- // logger plugin
- &logger.ZapLogger{},
- // metrics plugin
- &metrics.Plugin{},
- // redis plugin (internal)
- &redis.Plugin{},
- // http server plugin
- &httpPlugin.Plugin{},
- // reload plugin
- &reload.Plugin{},
- // informer plugin (./rr workers, ./rr workers -i)
- &informer.Plugin{},
- // resetter plugin (./rr reset)
- &resetter.Plugin{},
- // rpc plugin (workers, reset)
- &rpc.Plugin{},
- // server plugin (NewWorker, NewWorkerPool)
- &server.Plugin{},
- // memcached kv plugin
- &memcached.Plugin{},
- // in-memory kv plugin
- &memory.Plugin{},
- // boltdb driver
- &boltdb.Plugin{},
-
- // temporal plugins
- &temporalClient.Plugin{},
- &activity.Plugin{},
- &workflow.Plugin{},
- )
- if err != nil {
- log.Fatal(err)
- }
-
- cli.Execute()
-}