Documentation ¶
Index ¶
- type Router
- func (this *Router) Cluster(w http.ResponseWriter, r *http.Request)
- func (this *Router) Crawl(w http.ResponseWriter, r *http.Request)
- func (this *Router) CrawlCluster(w http.ResponseWriter, r *http.Request)
- func (this *Router) CrawlNode(w http.ResponseWriter, r *http.Request)
- func (this *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (this *Router) Spiders(w http.ResponseWriter, r *http.Request)
- func (this *Router) Welcome(w http.ResponseWriter, r *http.Request)
- type StartSpiderResult
- type WelcomeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Crawl ¶
func (this *Router) Crawl(w http.ResponseWriter, r *http.Request)
try to start spider if ok * tell other node start spider * start reporter and distribute in this node
func (*Router) CrawlCluster ¶
func (this *Router) CrawlCluster(w http.ResponseWriter, r *http.Request)
type StartSpiderResult ¶
type StartSpiderResult struct { Success bool Message string Spider string Time string MasterNode *node.NodeInfo }
result of start spider
type WelcomeInfo ¶
welcome struct
Click to show internal directories.
Click to hide internal directories.