4 Star 8 Fork 5

Humpback/humpback-center
暂停

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
typedef.go 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
bolve 提交于 2017-05-31 13:45 +08:00 . modify notify code
package notify
import "net/http"
//EndPoint is exported
type EndPoint struct {
Name string `yaml:"name"`
URL string `yaml:"url"`
Enabled bool `yaml:"enabled"`
Sender string `yaml:"sender"`
Headers http.Header `yaml:"headers"`
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
}
//Notifications is exported
type Notifications struct {
EndPoints []EndPoint `yaml:"endpoints,omitempty"`
}
//Engine is exported
type Engine struct {
IP string
Name string
State string
}
//WatchGroup is exported
type WatchGroup struct {
GroupID string
GroupName string
Location string
ContactInfo string
Engines []*Engine
}
//WatchGroups is exported
type WatchGroups map[string]*WatchGroup
//Container is exported
type Container struct {
ID string
Name string
Server string
State string
}
//GroupMeta is exported
type GroupMeta struct {
MetaID string
MetaName string
Location string
GroupID string
GroupName string
Instances int
Image string
ContactInfo string
Engines []*Engine
Containers []*Container
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/humpbacks/humpback-center.git
git@gitee.com:humpbacks/humpback-center.git
humpbacks
humpback-center
humpback-center
b392570bc023

搜索帮助