forked from chrissnell/chickenlittle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
43 lines (36 loc) · 1.14 KB
/
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
package main
type Config struct {
Service ServiceConfig `yaml:"service"`
Integrations Integrations `yaml:"integrations"`
}
type ServiceConfig struct {
APIListenAddr string `yaml:"api_listen_address"`
ClickListenAddr string `yaml:"click_listen_address"`
ClickURLBase string `yaml:"click_url_base"`
CallbackListenAddr string `yaml:"callback_listen_address"`
CallbackURLBase string `yaml:"callback_url_base"`
DBFile string `yaml:"db_file"`
}
type Integrations struct {
HipChat HipChat `yaml:"hipchat"`
VictorOps VictorOps `yaml:"victorops"`
Twilio Twilio `yaml:"twilio"`
Mailgun Mailgun `yaml:"mailgun"`
}
type Twilio struct {
AccountSID string `yaml:"account_sid"`
AuthToken string `yaml:"auth_token"`
CallFromNumber string `yaml:"call_from_number"`
APIBaseURL string `yaml:"api_base_url"`
}
type Mailgun struct {
APIKey string `yaml:"api_key"`
Hostname string `yaml:"hostname"`
}
type VictorOps struct {
APIKey string `yaml:"api_key"`
}
type HipChat struct {
HipChatAuthToken string `yaml:"hipchat_auth_token"`
HipChatAnnounceRoom string `yaml:"hipchat_announce_room"`
}