-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.go
61 lines (50 loc) · 1016 Bytes
/
config.go
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
60
61
package main
import "flag"
func flags() {
BroadcastStats = flag.Bool(
"BroadcastStats",
false,
"Broadcast stats",
)
serverAddress = flag.String(
"serverAddress",
":8081",
"ws address",
)
authUrl = flag.String(
"authUrl",
"http://localhost:8080/api/broadcast/auth",
"auth url",
)
sentryDSN = flag.String(
"sentryDSN",
"https://user:[email protected]/20",
"auth url",
)
webhookUrl = flag.String(
"webhookUrl",
"http://localhost:8080/api/broadcast/webhook",
"webhook url",
)
queuesFlag = flag.String(
"queues",
"default,",
"RabbitMQ queues. like: transactions,tickets. split with comma",
)
rabbitEndPoint = flag.String(
"rabbit",
"amqp://broadcast-user:broadcast-user@localhost:5672/",
"RabbitMQ connection url",
)
debug = flag.Bool(
"debug",
false,
"open debug mode",
)
//publicChannelsUrl = *flag.String(
// "publicChannelsUrl",
// "http://localhost:8003/api/broadcast/publicChannels",
// "public channels url",
//)
flag.Parse()
}