Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBResult ¶
type DBResult struct { Id primitive.ObjectID `bson:"_id,omitempty"` TaskID string SiteID string RespUrl string ClientName string //服务器IP IpAddr string //服务器端口 Port int //DNS加载时间 DnsTime int //页面加载时间 LoadTime int //网站响应时间 ResponseTime int //网站状态码 StatusCode int //最终监测结果,第0位为1则表示有篡改,第1位表示有敏感字 Result int CreateTime int64 Resources string }
type HtmlResult ¶
type HtmlResult struct { TaskID string SiteID string RespUrl *url.URL //html.parse得到的,不会为Nil Document *html.Node Resource map[string]ResourceMap //服务器IP IpAddr string //服务器端口 Port int //DNS加载时间 DnsTime int //页面加载时间 LoadTime int //网站响应时间 ResponseTime int //网站状态码 StatusCode int //最终监测结果,第1位为超时,第2位加载失败,第3位篡改,第4位内容变更, 第5位敏感字 Result int }
type MonitorResult ¶
type ResourceMap ¶
type SocMonitorResult ¶
type SocMonitorResult struct { TaskID string SiteID string RespUrl string NodeName string ClientName string //服务器IP IpAddr string //服务器端口 Port int32 //DNS加载时间 DnsTime int32 //页面加载时间 LoadTime int32 //网站响应时间 ResponseTime int32 //网站状态码 StatusCode int32 //最终监测结果,第0位为1则表示有篡改,第1位表示有敏感字 Result int32 CreateTime int64 //0代表不用处理,1代表已确认,2代表未确认 HandleStatus int HandleUser string Resources string }
type SocResult ¶
type SocResult struct { NodeName string TaskID string SiteID string //SourceCode string HandledCode string IpAddr string Port int32 DnsTime float64 LoadTime float64 ResponseTime float64 StatusCode int32 Result int32 IsNew bool CreateTime int64 }
用grpc返回给soc的结构体
type TaskDetail ¶
type TaskDetail struct { Taskid string WebsiteID string Url string Ip *string Config int Lasttime *time.Time }
func (TaskDetail) Alert ¶
func (detail TaskDetail) Alert() bool
func (TaskDetail) Aval ¶
func (detail TaskDetail) Aval() bool
func (TaskDetail) KeyWord ¶
func (detail TaskDetail) KeyWord() bool
func (*TaskDetail) UpdateLastTime ¶
func (self *TaskDetail) UpdateLastTime() error
type UrlResult ¶
func BuildResult ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.