MCPcopy
hub / github.com/hu17889/go_spider / SetStatus

Method SetStatus

core/common/page/page.go:79–82  ·  view source on GitHub ↗

SetStatus save status info about download process.

(isfail bool, errormsg string)

Source from the content-addressed store, hash-verified

77
78// SetStatus save status info about download process.
79func (this *Page) SetStatus(isfail bool, errormsg string) {
80 this.isfail = isfail
81 this.errormsg = errormsg
82}
83
84// AddField saves KV string pair to PageItems preparing for Pipeline
85func (this *Page) AddField(key string, value string) {

Callers 4

downloadFileMethod · 0.80
downloadHtmlMethod · 0.80
downloadJsonMethod · 0.80
downloadTextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected