summaryrefslogtreecommitdiff
path: root/cmd/rr/main.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 16:44:41 +0300
committerWolfy-J <[email protected]>2018-06-10 16:44:41 +0300
commit4c292ee46f5505b00b16186e8f30e9bc1be25895 (patch)
tree818dffc7ce5e890875b147b97e298d4c7c48cbd9 /cmd/rr/main.go
parenta62237fa5afc310453e709837e363f0bb4d7ecf3 (diff)
fs config
Diffstat (limited to 'cmd/rr/main.go')
-rw-r--r--cmd/rr/main.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 625e879c..ea16a99a 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -24,7 +24,11 @@ package main
import (
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
- "github.com/spiral/roadrunner/rpc"
+
+ // services (plugins)
+ "github.com/spiral/roadrunner/service/http"
+ "github.com/spiral/roadrunner/service/rpc"
+ "github.com/spiral/roadrunner/service/static"
// cli plugins
_ "github.com/spiral/roadrunner/cmd/rr/http"
@@ -32,7 +36,13 @@ import (
func main() {
// provides ability to make local connection to services
- rr.Container.Register("rpc", new(rpc.Service))
+ rr.Container.Register(rpc.Name, new(rpc.Service))
+
+ // http serving
+ rr.Container.Register(http.Name, new(http.Service))
+
+ // serving static files
+ rr.Container.Register(static.Name, new(static.Service))
// you can register additional commands using cmd.CLI
rr.Execute()