Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
Sid int64 `json:"sid"`
Domain string `json:"domain"`
Target string `json:"target"`
Creator string `json:"creator"`
Endpoint string `json:"endpoint"`
Tag string `json:"tag"`
RespCode string `json:"resp_code"`
RespTime int `json:"resp_time"`
Status int64 `json:"status"`
PushTime int64 `json:"push_time"`
Step int64 `json:"step"`
}
agent上报的数据结构
type DetectedItem ¶
type DetectedItem struct {
Sid int64 `json:"sid"`
Method string `json:"method"`
Domain string `json:"domain"`
Target string `json:"target"`
Keywords string `json:"keywords"`
Timeout int `json:"timeout"`
Creator string `json:"creator"`
Data string `json:"data"`
Endpoint string `json:"endpoint"`
Tag string `json:"tag"`
ExpectCode string `json:"expect_code"`
Idc string `json:"idc"`
Header string `json:"header"`
PostData string `json:"post_data"`
}
下发给agent的数据结构
type Event ¶
type Event struct {
Id int64 `json:"id"`
EventId string `json:"event_id"`
Status string `json:"status"`
Url string `json:"url"`
Ip string `json:"ip"`
EventTime int64 `json:"event_time"`
StrategyId int64 `json:"strategy_id"`
RespTime int `json:"resp_time"`
RespCode string `json:"resp_code"`
Result int64 `json:"result"`
CurrentStep int `json:"current_step"`
MaxStep int `json:"max_step"`
}
type EventQueue ¶
type EventQueue struct {
Id int64 `json:"id"`
EventId string `json:"event_id"`
Status string `json:"status"`
Url string `json:"url"`
Ip string `json:"ip"`
EventTime int64 `json:"event_time"`
StrategyId int64 `json:"strategy_id"`
RespTime int `json:"resp_time"`
RespCode string `json:"resp_code"`
Result int64 `json:"result"`
CurrentStep int `json:"current_step"`
MaxStep int `json:"max_step"`
}
type GetItemResponse ¶
type GetItemResponse struct {
Message string
Data []*DetectedItem
}
type ItemStatus ¶
type ItemStatus struct {
Id int64 `json:"id"`
Sid int64 `json:"sid"`
Ip string `json:"ip"` //agent所在机器的ip
RespTime int `json:"resp_time"`
RespCode string `json:"resp_code"`
PushTime int64 `json:"push_time"`
Result int64 `json:"result"`
}
func (*ItemStatus) PK ¶
func (this *ItemStatus) PK() string
type SendResultReq ¶
type SendResultReq struct {
Ip string
CheckResults []*CheckResult
}
type Strategy ¶
type Strategy struct {
Id int64 `json:"id"`
Idc string `json:"idc"`
Method string `json:"method"`
Url string `json:"url"`
Enable int `json:"enable"`
IP string `json:"ip" xorm:"ip"`
Keywords string `json:"keywords"`
Timeout int `json:"timeout"`
Creator string `json:"creator"`
ExpectCode string `json:"expect_code"`
Note string `json:"note"`
Data string `json:"data"`
Endpoint string `json:"endpoint"`
Header string `json:"header"`
PostData string `json:"post_data"`
Tag string `json:"tag"`
MaxStep int `json:"max_step"`
Times int `json:"times"`
Teams string `json:"teams"`
}
type StrategyResponse ¶
Click to show internal directories.
Click to hide internal directories.