Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertCheckResult ¶
InsertCheckResult ...
func InsertNode ¶
InsertNode insert the node to db
Types ¶
type AgentReportRequest ¶
type AgentReportRequest struct {
VCSInfo string `json:"vcs_info"`
Hostname string `json:"hostname"`
IP string `json:"ip"`
AgentVersion string `json:"agent_version"`
AgentType int `json:"agent_type"`
RegionCode string `json:"region_code"`
RegionName string `json:"region_name"`
ZoneCode string `json:"zone_code"`
ZoneName string `json:"zone_name"`
Env string `json:"env"`
}
AgentReportRequest agent status
type CheckReq ¶
type CheckReq struct {
CheckDatas []struct {
Type string `json:"type"`
Data string `json:"data"`
} `json:"check_datas"`
}
CheckReq ...
type CheckResult ¶
type CheckResult struct {
gorm.Model
NodeID int64 `gorm:"column:node_id" json:"node_id"`
Status Status `gorm:"column:status" json:"status"`
Count int64 `gorm:"column:count" json:"status"`
}
CheckResult ...
type GetFileReq ¶ added in v0.1.0
type GetFileReq struct {
FileName string `query:"file_name"`
}
type Node ¶
type Node struct {
ID int64 `gorm:"primary_key"`
AppName string `gorm:"column:aname"`
Schema string `gorm:"column:schema"` // http / grpc
IP string `gorm:"column:ip"`
Port int32 `gorm:"column:port"`
CreateTime *int64 `gorm:"column:ctime"`
UpdateTime *int64 `gorm:"column:utime"`
DeleteTime *int64 `gorm:"column:dtime"`
}
Node represents service node
Click to show internal directories.
Click to hide internal directories.