-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
59 lines (59 loc) · 1.24 KB
/
config.json
File metadata and controls
59 lines (59 loc) · 1.24 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
// Global context, which can be used in templates
"Context": {
"Namespace": "example",
"Name": "example-server",
"ID": 1001,
"R": {
"HTTPServer": "httpserver",
"EventSystem": "eventsystem"
}
},
// List of components, each containing a required `Name` and optional `UUID`, `Refs`, `Options`
"Components": [
{
"Name": "github.com/gopherd/example/components/logger",
"Options": {
"Level": "DEBUG",
"Output": "stdout"
}
},
{
"Name": "github.com/gopherd/example/components/eventsystem",
"UUID": "{{.R.EventSystem}}",
"Options": {
"Ordered": true
}
},
{
"Name": "github.com/gopherd/example/components/auth",
"Refs": {
"HTTPServer": "{{.R.HTTPServer}}",
"EventSystem": "{{.R.EventSystem}}"
},
"Options": {
"Secret": "{{.Namespace}}-secret"
}
},
{
"Name": "github.com/gopherd/example/components/users",
"Refs": {
"HTTPServer": "{{.R.HTTPServer}}",
"EventSystem": "{{.R.EventSystem}}"
},
"Options": {
"MaxUsers": 1000
}
},
{
"Name": "github.com/gopherd/example/components/httpserver",
"UUID": "{{.R.HTTPServer}}",
"Options": {
"Addr": ":{{add 8000 .ID}}"
}
},
{
"Name": "github.com/gopherd/example/components/blockexit"
}
]
}