Skip to content

Commit 0e0ad67

Browse files
committed
fmt
1 parent 2825e82 commit 0e0ad67

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

config/config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
var (
9-
Fragment = false // 是否分片
9+
Fragment = false // 是否分片
1010
Conf = &GmcConfig{
1111
SMS: false,
1212
Port: "9000",
@@ -17,16 +17,16 @@ var (
1717
)
1818

1919
type GmcConfig struct {
20-
Port string `json:"port"`
20+
Port string `json:"port"` // 管理端口
2121
SMS bool `json:"sms"` // 设备锁是否优先使用短信认证
2222
ServerGroups []*ServerGroup `json:"server_groups"` // 服务器组
2323
}
2424

2525
type ServerGroup struct {
26-
Name string `json:"name"`
27-
Disabled bool `json:"disabled"`
28-
Urls []string `json:"urls"`
29-
// TODO event filter, msg filter
26+
Name string `json:"name"` // 功能名称
27+
Disabled bool `json:"disabled"` // 不填false默认启用
28+
Urls []string `json:"urls"` // 服务器列表
29+
// TODO event filter, msg filter, regex filter, prefix filter, suffix filter
3030
}
3131

3232
func (g *GmcConfig) ReadJson(d []byte) error {
@@ -39,6 +39,6 @@ func (g *GmcConfig) ReadJson(d []byte) error {
3939
}
4040

4141
func (g *GmcConfig) ToJson() []byte {
42-
b, _ := json.MarshalIndent(g,""," ")
42+
b, _ := json.MarshalIndent(g, "", " ")
4343
return b
4444
}

0 commit comments

Comments
 (0)