-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.go
53 lines (45 loc) · 1.39 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
44
45
46
47
48
49
50
51
52
53
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"`
SMTP SMTP `yaml:"smtp"`
}
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 {
Enabled bool `yaml:"enabled"`
APIKey string `yaml:"api_key"`
Hostname string `yaml:"hostname"`
}
type SMTP struct {
Hostname string `yaml:"hostname"`
Port int `yaml:"port"`
Login string `yaml:"login"`
Password string `yaml:"password"`
Sender string `yaml:"sender"`
}
type VictorOps struct {
APIKey string `yaml:"api_key"`
}
type HipChat struct {
HipChatAuthToken string `yaml:"hipchat_auth_token"`
HipChatAnnounceRoom string `yaml:"hipchat_announce_room"`
}