blob: ed304252a8878a5099a5dab328ab6f1b6f1e71a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package main
import (
"log"
"github.com/spiral/endure"
"github.com/spiral/roadrunner-plugins/http"
"github.com/spiral/roadrunner-plugins/informer"
"github.com/spiral/roadrunner-plugins/metrics"
"github.com/spiral/roadrunner-plugins/redis"
"github.com/spiral/roadrunner-plugins/reload"
"github.com/spiral/roadrunner-plugins/resetter"
"github.com/spiral/roadrunner-plugins/rpc"
"github.com/spiral/roadrunner-plugins/server"
"github.com/spiral/roadrunner/v2/cmd/cli"
)
func main() {
var err error
cli.Container, err = endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel), endure.RetryOnFail(false))
if err != nil {
return
}
err = cli.Container.RegisterAll(
&metrics.Plugin{},
&redis.Plugin{},
&http.Plugin{},
&reload.Plugin{},
&informer.Plugin{},
&resetter.Plugin{},
&rpc.Plugin{},
&server.Plugin{},
)
if err != nil {
log.Fatal(err)
}
cli.Execute()
}
|