-
Notifications
You must be signed in to change notification settings - Fork 372
/
config.go
56 lines (49 loc) · 1.2 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
54
55
56
// Copyright 2019 syncd Author. All Rights Reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package syncd
type (
Config struct {
Serve *ServeConfig
Db *DbConfig
Log *LogConfig
Syncd *SyncdConfig
Mail *MailConfig
}
SyncdConfig struct {
LocalSpace string
RemoteSpace string
Cipher string
AppHost string
}
LogConfig struct {
Path string
}
MailConfig struct {
Enable int
Smtp string
Port int
User string
Pass string
}
ServeConfig struct {
Addr string
FeServeEnable int
ReadTimeout int
WriteTimeout int
IdleTimeout int
}
DbConfig struct {
Unix string
Host string
Port int
Charset string
User string
Pass string
DbName string
TablePrefix string
MaxIdleConns int
MaxOpenConns int
ConnMaxLifeTime int
}
)