http

package
v0.0.0-...-f2a16fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2016 License: MIT Imports: 8 Imported by: 16

Documentation

Index

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 NewRouter

func NewRouter(node node.Node, cluster cluster.Cluster, reporter, distributer action.Watcher, rpcClient action.RpcClientAnts) *Router

func (*Router) Cluster

func (this *Router) Cluster(w http.ResponseWriter, r *http.Request)

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)

func (*Router) CrawlNode

func (this *Router) CrawlNode(w http.ResponseWriter, r *http.Request)

func (*Router) ServeHTTP

func (this *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Router) Spiders

func (this *Router) Spiders(w http.ResponseWriter, r *http.Request)

func (*Router) Welcome

func (this *Router) Welcome(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

type WelcomeInfo struct {
	Message  string
	Greeting string
	Time     string
}

welcome struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL