-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.go
49 lines (39 loc) · 875 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
package main
type Config struct {
SyncMinutes int
WebServerPort string
SSLCertificateFile string
SSLPrivateKeyFile string
OauthClientId string
OauthClientSecret string
OauthRedirectURL string
ExchangeServerURL string
MaxResults int
}
func (c Config) MinutesBetweenSync() int {
return c.SyncMinutes
}
func (c Config) Port() string {
return c.WebServerPort
}
func (c Config) Certificate() string {
return c.SSLCertificateFile
}
func (c Config) PrivateKey() string {
return c.SSLPrivateKeyFile
}
func (c Config) ClientId() string {
return c.OauthClientId
}
func (c Config) ClientSecret() string {
return c.OauthClientSecret
}
func (c Config) RedirectURL() string {
return c.OauthRedirectURL
}
func (c Config) ExchangeURL() string {
return c.ExchangeServerURL
}
func (c Config) MaxFetchSize() int {
return c.MaxResults
}